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.