Reputation: 135
I have string data containing *.csv file content (read from using File.ReadAllText(filePath) method and want create new Data Table object from the string data. I don't have an option to use file path because the file is immediately deleted from the drive once it is been read.
Upvotes: 0
Views: 526
Reputation: 21757
You could consider replacing your File.ReadAllText method with File.ReadAllLines. Then, you could do something like the below steps:
Upvotes: 0