Hi all ,
I have to import from a text file that has the follwing format:
[1]
Line1
Line2
Line3
[2]
Line1
Line2
[3]
Line1
[4]
etc.
Each number represents one record.
Previously (before the exporting Program did a revamp) each record had 6 lines, and these were exported even if they were empty. I started my import with a "do until freefile.eof", then in this loop a for I=1 to 6 and evaluated each line for one record, wrote the record into my table.
Now empty lines are not exported, hence I don't know how many lines represent 1 record, or which lines are missing.
Does anyone have any idea how I can code this. I know I have to work on the number line somehow, but how do I say in VB:
Evaluate each line till you hit a number, then move back one line, write the record to the table and start over again, with the number line being the first line of the new record.
Wow, does that make sense to anybody?
Thanks
Marion
I have to import from a text file that has the follwing format:
[1]
Line1
Line2
Line3
[2]
Line1
Line2
[3]
Line1
[4]
etc.
Each number represents one record.
Previously (before the exporting Program did a revamp) each record had 6 lines, and these were exported even if they were empty. I started my import with a "do until freefile.eof", then in this loop a for I=1 to 6 and evaluated each line for one record, wrote the record into my table.
Now empty lines are not exported, hence I don't know how many lines represent 1 record, or which lines are missing.
Does anyone have any idea how I can code this. I know I have to work on the number line somehow, but how do I say in VB:
Evaluate each line till you hit a number, then move back one line, write the record to the table and start over again, with the number line being the first line of the new record.
Wow, does that make sense to anybody?
Thanks
Marion