Steve Peacocke wrote:
> Just wondering if you are looking at this in the right context.
I hope I'm, but never can be too sure.
> FileSize will give you the size in bytes which may be what
> you are looking
> for.
> Alternatively, if you wish to load the text file but want to
> check if there
> are too many lines before you do it, then Fileize may be OK then too.
Unfortunately not, since the files I'm working with do not have fixed
structure
> Then <TStrings>.LoadFromFile will place the entire file in a TStrings
> object where .Count and numerous methods and properties are
> available for
> processing.
True, but they have their limits on number of items, don't they?
> Why the need top know the exact number of lines - does it matter?
Because they're to be exported to Excel and it can't handle more then 65536
lines at a time.
Best regards,
Sergei
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"