|
-
May 25th, 2008, 10:07 AM
#1
Thread Starter
Hyperactive Member
[2008] read every line in a text file seperatly
Hi everyone,
How would i go about reading a text file from beginning to end but reading it as lines and not one huge string. For example if the text file contained 2 lines and the strings on each line were "line1" and "line2" ,respectively, how would i go about reading line1 then reacting to the value of line1 then reading line2 then reacting to it and so on. i think i could get it working if there were going to only two lines and i know what the values are but i don't. the actual values can be anything and the length in lines can be 30 (for now). any help would be great because i have been stuck on tis fro an hour. So thanks to all who can help.
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
|