papp@tsjiang.rutgers.edu (Albert Papp) (06/11/91)
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