On 2017-04-21 16:47, Ted Roche wrote:
On Fri, Apr 21, 2017 at 4:37 PM, mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
Testing showed these two pretty much a dead heat:
RowCount = OCCURS(CHR(13),FILETOSTR(m.Filename)) RowCount = ALINES(aCrap,FILETOSTR(m.Filename))
But on the bright side, with Richard's one-liner, you're done reading in the file: it's sitting in the array.
I don't see the difference; yes, it's in the array, but what do I want it for after that? For my processing, I was just comparing this year's file to last year's file and seeing how their record counts differed. Not really working with the file after that.
Actually, in looking at those two tests above, I would think the OCCURS would be better because in the upper, the file bulk is in whatever temporary variable created by FILETOSTR(..) but then in Richard's ALINES test, that same file is in the temporary variable like Test1 BUT it's ALSO in the aCrap array. Correct????