I am reading csv file data and want to Print the datatable in Console application.
Please tell me how can I do that. Below is my existing code.
string csv_file_path = @"C:\Users\files\LP.csv";
DataTable csvData = GetDataTabletFromCSVFile(csv_file_path);
//Console.WriteLine(csvData);
foreach (DataRow row in csvData.Rows)
{
Console.WriteLine();
// ... Write value of first field as integer.
}
Console.ReadLine();