home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / programm / 3546 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.4 KB

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