In C++, the ifstream class has a property "eof", that seems to be the
default property. I'm porting come C++ code to Delphi, and it has a
form like:
ifstream ifs( pszFile, ios::binary|ios::nocreate|ios::in );
if( ! ifs ) { handle error}
ifs.read( (BYTE*)&structure, sizeof(structure) );
if( ! ifs ) {handle error}
How is this supposed to be done in Delphi? I don't find any property
or method that gives the EOF indication. The EOF function in the
System unit applies only to the older assign/reset/rewrite style of
file access. How is EOF tested when using TFileStream?
I guess I could re-write everything with AssignFile, Reset, BlockRead,
and EOF, but I thought TFileStreams were supposed to be a better way
to handle files?
(I'm using D7)
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/