Hello I am new to C# and I have to parse the text file formatted which has the data like following.
H1|57535 |65644474| 243.34 D1|671690160540 |FedEx Gnd |Ground |Parcel |06082016 D2|FCREADHCU3 | 10|||||| 23.01 H1|57521 |65642336| 923.31 D1|671690161010 |FedEx Gnd |Ground |Parcel |06082016 D2|PS121B | 1| 0.00 H1|57521 |65642336| 923.31 D1|671690161031 |FedEx Gnd |Ground |Parcel |06082016 D2|PS121B | 1| 0.00 H1|57521 |65642336| 923.31 D1|671690161020 |FedEx Gnd |Ground |Parcel |06082016 D2|PS121B | 1| 0.00 snipping
How can I parse text file in C#. Help Is appreciated.
Start with this:
This gives you a way to parse the file, and to project it into some sort of object you can deal with
You could do a foreach loop for each line in the file and parse the string...