www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/03/20:10:44

From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP: cannot read file while opened in word!?!
Date: Thu, 03 Apr 1997 20:34:24 GMT
Message-ID: <33441199.7005853@news.demon.co.uk>
References: <33429627 DOT 50B1 AT ife DOT ee DOT ethz DOT ch>
NNTP-Posting-Host: abwillms.demon.co.uk
Lines: 41
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Wed, 02 Apr 1997 19:23:51 +0200, Bernhard Baeumle
<bb AT ife DOT ee DOT ethz DOT ch> wrote:

>Hi folks.

>I desperately need your help!

>===> From my djgpp-program I cannot even open this 
>file for reading (as long as it's opened with Word).
>Note: fopen("test.txt", "r") returns NULL   !?!?!?

There isn't any difference between Word files and "normal" files
at the fopen level - so this shouldn't happen!

Can you view test.txt with a DOS text editor? Perhaps it's
gotten itself a silly LFN tilde on:

"test~1.txt" (Grrr!)

In which case, going looking for it will reveal the problem. If a DOS
text editor can read it fine, under that filename, something more
fundamental is wrong! If the editor sees the file but comes back with
an error, then it's probably file locking after all; in which case,
close the file in Word rather than saving it but leaving the window
open.

Luck!


ABW
--
"Plug and Play support: WfEWAD will autodetect any installed
Nuclear Arsenals, Laser Satellites, Battlefield Control Networks,
Radar Installations, Fighter Squadrons, and other WfEWAD compliant
devices, including the new Macrosoft Unnatural Keyboard, with
full support for the now-famous Big Red Buttom(tm)."

(Windows for Early Warning and Defence User's manual P26)

Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.abwillms.demon.co.uk/">Hello :-)</A>

- Raw text -


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