Yeah, and did you try reading a +1GiB txt file? ;-)
El 28/4/2017 12:22, "Laurie Alvey" trukker41@gmail.com escribió:
Have you thought about the ALINES() function?
Laurie
On 27 April 2017 at 16:12, Fernando D. Bozzo fdbozzo@gmail.com wrote:
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., mbsoftwaresolutions@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]