11-20-2013 02:08 PM
I want to back up to basic. What are you really trying to achieve? You need to read a text file, which is some tab separated spreadsheet? Then modify some "cells", or do some string work on full lines? Then write back to another file?
/Y
11-20-2013 04:06 PM
@gigi85 wrote:
in attachment the image
Are you moving to end of file after opening it? You're checking file size in bytes, then trying to read that many lines (it wont match) while telling your loop to run bytes number of loops. Every 1000th read you add the read line to the total, which may, or may not (unsure) be the same line.
To explain in some numbers. You have a 85Mb text file of 25k lines (e.g. assuming long lines)
Your loop will spin 85 million times, reading the file and extract 85k lines ...
/Y