www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/10/12:50:23

From: Bernhard Baeumle <bb AT ife DOT ee DOT ethz DOT ch>
Newsgroups: comp.os.msdos.djgpp
Subject: Thanks! That works! (Re: Desperately need help with "fopen")
Date: Thu, 10 Apr 1997 17:12:34 +0200
Organization: Electronics Lab
Lines: 13
Message-ID: <334D0362.63B4@ife.ee.ethz.ch>
References: <334B568B DOT DBF AT ife DOT ee DOT ethz DOT ch> <5ihqle$48j AT sky DOT inp DOT nsk DOT su>
NNTP-Posting-Host: quincy.ee.ethz.ch
Mime-Version: 1.0
CC: bukinm AT inp DOT nsk DOT su
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

THANKS Michael! This works fine!

I just found out how to open the file with 
_dos_open(..., O_RDONLY|SH_DENYNO, ...) 
but since I did not know the function fdopen() (I usually write portable
ANSI-C-code!) I thought I would have to write some buffering and a
"fgets"-function myself --- what a pain!

THANKS for your example code!

BTW: I still do not agree with the behaviour of 'fopen()' !!!

Beni.

- Raw text -


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