home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!timbuk.cray.com!raistlin!ems!ems.cdc.com!mtoms
- From: mtoms@ems.cdc.com (Mark Toms)
- Newsgroups: comp.programming
- Subject: Maximum file size for MS-DOS
- Message-ID: <31744@nntp_server.ems.cdc.com>
- Date: 21 Jan 93 22:11:33 GMT
- Sender: sys@ems.ems.cdc.com
- Reply-To: mtoms@ems.cdc.com
- Distribution: usa
- Organization: Empros Systems International, a division of CDC
- Lines: 25
- Nntp-Posting-Host: bge1.ems.cdc.com
-
- I need some help concerning reading/writing a binary data file to disk using
- Microsoft C Version 6.01 on a MS-DOS based machine.
-
- I created a file using fopen and began writing records to it. I used
- fclose when I was done. This part seems to work fine.
-
- However, when I began reading records (fseek, followed by fread) from
- the file, fread failed when I got to about 65535 into the file. I
- noticed that size_t is an unsigned int (16 bits??).
-
- Does anyone have any ideas how to write a data file (about 3 Meg) to
- disk? Am I using the wrong functions?
-
- Any help would be appreciated.
-
- Thanks,
- Mark
-
- ==========================================================================
- J. Mark Toms email: mtoms@ems.cdc.com
- Baltimore Gas & Electric, Company
- C/O Empros Systems International Phone: (612) 553-4423
- 2300 Berkshire Lane North FAX: (612) 553-4018
- Plymouth, Minnesota 55441-3694 USA Mailstop: PLY060
- ==========================================================================
-