Read File and save in datatable
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I am reading a file into datatable. In file I have 3 column but in my datatable 4. Column 4 in datatable needs to be populated at run time before or after full file is loaded into dt. how do I do this? Dim lines = File.ReadAllLines(FileName) For Each line As String In lines dt.Rows.Add(line.Split("|")) Next
-
I am reading a file into datatable. In file I have 3 column but in my datatable 4. Column 4 in datatable needs to be populated at run time before or after full file is loaded into dt. how do I do this? Dim lines = File.ReadAllLines(FileName) For Each line As String In lines dt.Rows.Add(line.Split("|")) Next
What file you are trying to read from..??