To create a DataTable from a CSV file in C#, you can use the TextFieldParser class from the Microsoft.VisualBasic.FileIO namespace.
This code assumes that the CSV file has headers in the first row. If the file doesn't have headers, you can remove the code that reads and adds them to the DataTable.