TIP: Click on subject to list as thread! ANSI
echo: aust_avtech
to: Niels Petersen
from: Frank Malcolm
date: 1997-01-27 11:30:00
subject: getc()

Hi, Niels.

NP>  On 13 Jan 97  10:14:10 Bob Lawrence typed to Niels Petersen ....

NP>  >> How do they read from a file in a block?

NP>  >  NP> A file read (at the lowest level) places one sector (512 bytes)
NP>  >  NP> into a particular place in memory allocated for that purpose.

NP>  >   This is what Paul said, but it doesn't work in practice.

NP>  What I wrote is _exactly_ what happens at the machine level regardless
NP>  of what programming language you are using.

I don't think so. The hardware, the BIOS, and DOS all need to be told
how many bytes you want to read, where from, and where to put them. I
don't *think* (but may be wrong) that DOS necessarily buffers the I/O
so that it always reads an exact number of sectors. The C RTL may.

Regards, fIM.

 * * Stop your grinnin' and drop your linen...
@EOT:

---
* Origin: Pedants Inc. (3:711/934.24)
SEEN-BY: 711/934 712/610 624
@PATH: 711/934

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