I'm just looking for logic, not asking for someone to write the code for me. (but i would accept it if someone had it laying around.

Moderators: JRL, Dorian (MJT support)
That's exactly what I'm looking for. I'll give it a try when I get home from work! Thank you.JRL wrote:Use the method posted here to get the line number of the last line then use the ReadLn function using the last line as the line to read. Subtract one from the last line and you have the next to last line, etc.
Code: Select all
ReadFile>c:\somefile.txt,file_data
Separate>file_data,CRLF,lines
If>lines_count>0
Let>k=lines_count
Repeat>k
Let>this_line=lines_%k%
MessageModal>this_line
Let>k=k-1
Until>k=0
I was considering this method as well, but here was my question. I would be doing this with around 16-20 files at a time (one right after another) and the files could get as large as 1000-2000 lines a piece. (worst case scenario) could this cause a memory problem?mtettmar wrote:Or:
Code: Select all
ReadFile>c:\somefile.txt,file_data Separate>file_data,CRLF,lines If>lines_count>0 Let>k=lines_count Repeat>k Let>this_line=lines_%k% MessageModal>this_line Let>k=k-1 Until>k=0