I'm missing something here I'm sure. I'm trying to read a file line for line, but can't figure out how to tell Rev to move to the next line in the file.
Code: Select all
put "...Downloads\enwiki-20090902-pages-articles.xml\enwiki-20090902-pages-articles.xml" into varFileToRead
open file varFileToRead for read
put 1 into varCounter
put "filler" into varLineData
--repeat until varLineData is empty
read from file varFileToRead for 1 line
put it into varLineData
--end repeat
close file varFileToRead
I'm using "read from file varFileToRead for 1 line" but see no way to tell Rev what line to read, unless it's not possible to use "line" in this manner, I did notice that it was shown as an example for "stdin" and not "file". If not possible, then I know I'll have to play a bit of a guessing game at using character counting to do this.
Any suggestions/help appreciated.
Thanks,
~Garrett
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)