Hi, can somebody point me in the right direction - I have a csv files of the following format;
"HDR","1","1","STORE NAME"
"LNE","1","M6-T"
"LNE","2","L6-T"
"HDR","2","1","STORE NAME"
"LNE","1","M6-T"
"EOF"
The HDR field represent a header, whilst the LNE fields represents lines/records. EOF represent the end of the file. Can somebody please point me in the right direction how to parse the file and then display it so that I can easily sepearate each order (header line) and its associated lines (LNE). I did find some code to parse the file, which placed all the items in a one dimensional array but it did not recognise the end of each line with some items being added to the first item of the next line. I should note that the csv file can contain numerous header lines (HDR), with each header containing numerous lines (LNE). I would very much appreciate any help! Many thanks.
"HDR","1","1","STORE NAME"
"LNE","1","M6-T"
"LNE","2","L6-T"
"HDR","2","1","STORE NAME"
"LNE","1","M6-T"
"EOF"
The HDR field represent a header, whilst the LNE fields represents lines/records. EOF represent the end of the file. Can somebody please point me in the right direction how to parse the file and then display it so that I can easily sepearate each order (header line) and its associated lines (LNE). I did find some code to parse the file, which placed all the items in a one dimensional array but it did not recognise the end of each line with some items being added to the first item of the next line. I should note that the csv file can contain numerous header lines (HDR), with each header containing numerous lines (LNE). I would very much appreciate any help! Many thanks.