On Thu, 27 Apr 2017 17:12:49 +0200, "Fernando D. Bozzo" <fdbo...@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 loFSO = createobject("Scripting.FileSystemObject") loFile = loFSO.OpenTextFile(m.filename, 8, .f.) ? loFile.Line -1 This method overcome VFP memory / file size limits. Source: http://stackoverflow.com/questions/7416553/function-to-count-number-of-lines-in-a-text-file -- Gianni _______________________________________________ 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/agf6gcldo797r44fpeknmbsdjefc83d...@4ax.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.