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)
|