TIP: Click on subject to list as thread! ANSI
echo: clipper
to: CAREL FRIK
from: BRYAN SMITH
date: 1996-09-16 21:01:00
subject: FERROR() DOES NOTHING !??

On 10 Sep 96 Carel Frik said to Robert Gagne...
 RG> Anyhow, when you get a number a bytes written smaller than what you
 RG> tried to write, with an ferror() equals to zero, You may assume that
 RG> the disk is  full.
Here's a related phenomenon that I ran into with another language.  I
suspect it is a "system thing" and that it probably applies to all
languages.
In trying to solve a file printing problem, I attempted to copy a file to
the file "PRN".  The last byte of the source file was EOF.  The print job
came out just fine, but I got an error message telling me that the "disk"
(i.e. PRN) was full.  Some experimenting showed that PRN will not "accept"
an EOF byte, hence the data sent will be one less byte than the file size,
and the system will conclude that the PRN device is "full".
--- PPoint 2.00
---------------
* Origin: Kingston Canada (1:249/109.11)

SOURCE: echomail via exec-pc

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™.