I am uploading a CSV file through a web application to a data table. Simple example would be 1,1,1,1,1,1,1,1 was just wondering what would be the best way to validate that its a CSV file before trying to upload it for example the following code works on a txt file or a image
string CSVFilePath = Path.GetFullPath(FileUpload1.PostedFile.FileName);
string ReadCSV = File.ReadAllText(CSVFilePath);