|
-
Nov 15th, 2001, 11:46 AM
#1
Thread Starter
Member
parse text file with loop inside
i'm trying to parse a text file, the problem is that at certain points of the file, i need to loop through certain parts of the file. For example:
**tag1 : some info here
**tag2 : more info
**tag3 : info
**this is where i need to loop thru
**info, if there is no colons on the line.
**and i need to concatenate it
if the line contains a ":", there's no problem, but the minute i need to loop thru a part, i'm not sure how to handle it.
do until eof(1)
line input #1, s
if instr(s, ":") > 0 then
'grabs necessary info
else
'need to loop and get info, having problems here
endif
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|