opening a file from a new directory in fortran
- From: "diana" <dvalpin@xxxxxxxxx>
- Date: 8 Aug 2006 11:12:33 -0700
Hi,
I have a basic question about opening a file in fortran.
I want to open a file in a new directory. I used to be able to do this
by specifying the path and having STATUS='unknown' and the compiler
would create the directory and the file if it didn't exist.
I upgraded to a newer intel compiler and now this is not working.
This is the part of the fortran code that is relevant to the problem:
(by the way the directory 'newdirectory' does not exist in
/home/valencia/ yet - i want fortran to create it if needed)
dir='newdirectory/'
outputfile= dir//'file.dat'
open(1,file=outputfile, status='NEW')
and the error is:
forrtl: No such file or directory
forrtl: severe (29): file not found, unit 1, file
/home/valencia/newdirectory/file.dat
Image PC Routine Line Source
superearth 0809ACDA Unknown Unknown Unknown
superearth 080993AD Unknown Unknown Unknown
superearth 08099329 Unknown Unknown Unknown
superearth 08074CA6 Unknown Unknown Unknown
superearth 080749D6 Unknown Unknown Unknown
superearth 0805BC59 Unknown Unknown Unknown
superearth 0804ADBB Unknown Unknown Unknown
superearth 08049E21 Unknown Unknown Unknown
libc.so.6 B7B2A87C Unknown Unknown Unknown
superearth 08049D61 Unknown Unknown Unknown
If I change the status to 'unknown' or 'replace' it still doesn't work.
Can someone please help me? it seems like an obvious question but I
can't seem to know what the problem is.
thanks
diana
.
- Follow-Ups:
- Re: opening a file from a new directory in fortran
- From: jwm
- Re: opening a file from a new directory in fortran
- From: Richard Maine
- Re: opening a file from a new directory in fortran
- From: Reinhold Bader
- Re: opening a file from a new directory in fortran
- Prev by Date: Reflections on good and evil
- Next by Date: Re: opening a file from a new directory in fortran
- Previous by thread: Reflections on good and evil
- Next by thread: Re: opening a file from a new directory in fortran
- Index(es):
Relevant Pages
|
Loading