Article View: comp.windows.ms.programmer
Article #3322File I/O Mystery
From: Keith A. McNabb
Date: Thu, 20 Jun 1991 19:54
Date: Thu, 20 Jun 1991 19:54
16 lines
1030 bytes
1030 bytes
Thanks to everyone on the net who has shortened my Windows programming learning curve! Well, here's one more: I'm writing to a text file using scads of fprintf() calls. I've opened the file using OpenFile(), then obtained the file pointer by calling fdopen(). The contents of the output file are just fine, except that it mysteriously limits itself in size to 2048 bytes. I've bumped up HEAPSIZE, and I've checked to make sure there are no Windows system calls between the file open and close. Also, I check the return from fprintf, and it is always non-zero. Has anyone run into this? It's gotta be something simple. Keith McNabb kam@iti.org
Technical Details
Message-ID:
<1991Jun20.195438.14215@iti.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!hela!kamShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!hela!kam From: kam@iti.org (Keith A. McNabb) Newsgroups: comp.windows.ms.programmer Subject: File I/O Mystery Keywords: file I/O fprintf Message-ID: <1991Jun20.195438.14215@iti.org> Date: 20 Jun 91 19:54:38 GMT Distribution: na Organization: Industrial Technology Institute Lines: 16