Hello,
I'm trying to develop a module for use at work.
I have a text file from which i need to get data
This is how the text file looks like
----------------------------------------------------------------
NUM1;CITY;ADDRESS;DATE;
1;NAME1;1111111111111111;22222222222;
2;NAME2;1111111111111111;22222222222;
3;NAME3;1111111111111111;22222222222;
4;NAME4;1111111111111111;22222222222;
5;NAME5;1111111111111111;22222222222;
6;NAME6;1111111111111111;22222222222;
6;TEXT1.TXT;
NUM2;CITY;ADDRESS;DATE;
1;NAME1;1111111111111111;22222222222;
1;TEXT1.TXT;
NUM3;CITY;ADDRESS;DATE;
1;NAME1;1111111111111111;22222222222;
2;NAME2;1111111111111111;22222222222;
3;NAME3;1111111111111111;22222222222;
4;NAME4;1111111111111111;22222222222;
4;TEXT1.TXT;
..............
..........
............
What i need is to get data in this order
text.text - first row
NUM1 6 - second row (NUM1, 6 - number of names)
NUM2 1 - third row (NUM2, 1 - number of names)
NUM3 4 - fourth row (NUM3, 4 - number of names)
.....
.....
.....
Please help
Bookmarks