delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/07/18:35:54

From: makulik AT tf16 DOT mch DOT sni DOT de (Makulik.Guenther T 27528 R 91-811 WS tx24 )
Newsgroups: comp.os.msdos.djgpp
Subject: Re: open() question
Date: 5 Aug 1997 11:09:07 GMT
Organization: Siemens Nixdorf Inc.
Lines: 9
Message-ID: <5s71kj$c7h$1@horus.mch.sni.de>
References: <33e1f561 DOT 1686433 AT news DOT pacific DOT net DOT sg>
NNTP-Posting-Host: tmntn.mch.sni.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Victor (fesenko AT pacific DOT net DOT sg) wrote:
: I'm having a problem with open() function. As I understand using
: open("file.dat",O_RDWR|O_BINARY|O_CREAT)  a new file has to be created
                  ^^^^^^^^^^^^^^^^^^^^^^^
Try O_TRUNC!

hth
Guenther

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019