Check if the values in a csv file is integer or string

Sep 21 2020 1:11 PM
Hey,
 
I have a csv file:
 
My code till now:
  1. public static class Function1  
  2. {  
  3. [FunctionName("Function1")]  
  4. public static void Run([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer, ILogger log)  
  5. {  
  6. log.LogInformation($"C# Timer trigger function started at: {DateTime.Now}");  
  7. Thread.Sleep(2000);  
  8. log.LogInformation($"C# Timer trigger function completed at: {DateTime.Now}");  
  9. var path = @"C:\Users\sandurpr\Desktop\C# Programming....COA-Blanket-TB.csv";  
  10. var csvData = File.ReadAllText(path);   
Requirement: 
the above code reads the csv file.
i want it to check if the values in the csv file is numeric or string. e.g if numeric then true else not true . 
 
Thank you 

Answers (1)