www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/05/05:06:14

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fortran scratch files
Date: Fri, 05 Oct 2001 10:50:02 +0200
Lines: 24
Message-ID: <3BBD743A.B89039B6@is.elta.co.il>
References: <200110050741 DOT f957fkj93808 AT postino3 DOT int DOT prima DOT com DOT ar>
NNTP-Posting-Host: 192.116.55.139
Mime-Version: 1.0
X-Trace: fu-berlin.de 1002271774 19982351 192.116.55.139 (16 [61365])
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Orlando P. Hevia" wrote:
> 
> The following FORTRAN sentence
> 
> OPEN ( UNIT= 52, STATUS='SCRATCH')
> 
> creates the file fort.52 (or fort.522, etc if fort.52
> exists), in the directory defined by environment variable
> TMP, when the program is compiled with Mingw32 FORTRAN.
> 
> The files are normally deleted at end of run, but if the
> program aborts, in some cases the file remains.
> 
> What is the equivalent with DJGPP FORTRAN compiler, when
> the
> program runs under native DOS 6.22, in other words, file
> name and directory?

Look in the directory where the TMPDIR environment variable points, normally
%DJDIR%/tmp, where %DJDIR% is the root of your DJGPP installation.  In my
testing, the file name looks like forta52a.

Why is this important, anyway?  These are scratch files, so their location
should not be important, I think.

- Raw text -


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