I have a text report. There is no delimiter, there is no fix format throughout the file. Once I can determine what line I am on I can figure out the format of that line. The problem curently is I am loading this file into a datatable. The datatable is removing leading spaces so the report that looks like
A(10 spaces)B(5 Spaces)C
(11 spaces)B(5 Spaces)C
(11 spaces)B(5 Spaces)C(5 spaces)D
(11 spaces)B(5 Spaces)C
Where A B C D are my data
in a data Table looks like
dt[0] = A(10 spaces)B(5 Spaces)C
dt[1] = B(5 Spaces)C
dt[2] = B(5 Spaces)C(5 spaces)D
dt[3] = B(5 Spaces)C
With Leading spaces removed. Can I stop a dataTable from acting like this? Now maybe the solution is not to load it into a data table but to return a open Stream, or a array of string[].
The other issue is that I need to move up and down through the file once I find a piece of informations.
Thank you.
A(10 spaces)B(5 Spaces)C
(11 spaces)B(5 Spaces)C
(11 spaces)B(5 Spaces)C(5 spaces)D
(11 spaces)B(5 Spaces)C
Where A B C D are my data
in a data Table looks like
dt[0] = A(10 spaces)B(5 Spaces)C
dt[1] = B(5 Spaces)C
dt[2] = B(5 Spaces)C(5 spaces)D
dt[3] = B(5 Spaces)C
With Leading spaces removed. Can I stop a dataTable from acting like this? Now maybe the solution is not to load it into a data table but to return a open Stream, or a array of string[].
The other issue is that I need to move up and down through the file once I find a piece of informations.
Thank you.