Article View: comp.windows.ms.programmer
Article #3181HELP! Bug w/ OpenFile & bc++2.0?
From: Albert Papp
Date: Mon, 10 Jun 1991 20:47
Date: Mon, 10 Jun 1991 20:47
21 lines
1233 bytes
1233 bytes
I am having difficulties using both OpenFile and _lopen with Borland c++ version 2.0 when I am trying to open a brand new file for writing. Read operations work just fine, but I have yet to be able to open a file in any write mode without getting a return value of -1 (error) I am using the OF_WRITE flag, although I have tried virtually every conceivable combination. Has anyone else had this problem? If anyone cares to mail me a code segment that is known to work under bc++2.0 and writes to a file, I'd appreciate it. Or, if anyone has gotten the SDK examples disk program called EDITFILE.C to WRITE (save) a file without an error message (reading from disk works just fine) using bc++2.0, please let me know what changes you made to the code. Thanks, -Al papp@tsjiang.rutgers.edu
Technical Details
Message-ID:
<Jun.10.16.47.43.1991.6577@tsjiang.rutgers.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!neptune.rutgers.edu!tsjiang.rutgers.edu!pappShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!neptune.rutgers.edu!tsjiang.rutgers.edu!papp From: papp@tsjiang.rutgers.edu (Albert Papp) Newsgroups: comp.windows.ms.programmer Subject: HELP! Bug w/ OpenFile & bc++2.0? Message-ID: <Jun.10.16.47.43.1991.6577@tsjiang.rutgers.edu> Date: 10 Jun 91 20:47:43 GMT Distribution: na Organization: Rutgers Univ., New Brunswick, N.J. Lines: 21