Hi Mike: A very fast method is using the FileSystemObject:
loFSO = CREATEOBJECT("Scripting.FileSystemObject") loFile1 = loFSO.OpenTextFile(lcArchivo1, 1) Look at the syntax on Microsoft web site for the read method. It does not have the limitation of VFP's fread/fgets Regards El 21/4/2017 4:45 p. m., <mbsoftwaresoluti...@mbsoftwaresolutions.com> escribió: > VF9SP2 > > Currently, I'm simply doing this for now: > > RowCount = OCCURS(CHR(13),FILETOSTR(m.Filename)) > > Is there a better (read: FASTER) way? These are tab delimited text files > so I can't really use FSEEK or FSIZE(m.Filename) (which requires SET > COMPATIBLE ON) because I can't be sure of each record's length. > > tia, > --Mike > > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cagq_jumz+u+fpxu5dh64c0sbyffts+t4y8gyk+0ax74qtmp...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.