TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jasen Betts
from: Tom Torfs
date: 1998-08-30 23:05:28
subject: 100% (?) ANSI/ISO-complia

* Reply to a message in personal_mail.

Jasen Betts wrote in a message to TOM TORFS:

TT> Sure. But the whole matter is a bit academical. Do you know of any
TT> implementations that don't support SEEK_END ? (I suspect that such     
TT> implementations probably don't have any reliable method of detecting   
TT> end of file, so the getc()/fread() approach will probably fail as well)

 JB> how about CP/M which only knows filesize to the block-number (ICBW)
 JB> and flags the EOF in text files with a '\032' (ctrl-z)

Like I said, on such systems the getc() approach will fail as well, because
the stream must be opened in binary mode for the return value of ftell() to
be guaranteed to be a byte count, and this will mean the EOF won't be
detected.

greetings,
Tom
tomtorfs{at}village.uunet.be

--- timEd/2 1.10+
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)
SEEN-BY: 396/1 622/419 632/0 371 633/260 267 270 371 634/397 635/506 728 810
SEEN-BY: 639/252 670/213 218
@PATH: 292/516 106/1 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.