feof(), fseek(), fread()

J

Joe Wright

Mark said:
At least as likely it was due to VMS - all files are multiples of 512
bytes long, padded with nulls as required. Text files had ascii 26 to
mark the 'end' but the OS still considered a 12-byte file to be 512
bytes in size.

BTW isn't the file management family tree VMS->CPM->DOS?

Maybe so. CP/M used IBM's 8-inch floppy format as its basis. The IBM
unit record (sector) was 128 bytes and it was the smallest unit you
could read/write. Text files were terminated with ASCII 26 as above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

fseek 17
fseek() newbie question 2
fseek() 1
fseek() 6
fseek() clears EOF? 6
Determining EOF using fseek()? 6
Help with EXT3 Filesystem work 1
fread breaks file descriptors opened in "w" mode. 14

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top