Re: opening char variable data file
- From: OldSchool <scott.myron@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 10:25:23 -0700
On Oct 30, 1:53 pm, GT <gthib...@xxxxxxxx> wrote:
Hi all,
I am not sure why the following is not working, maybe someone will point out
the obvious to me ?
I set
file_name_use as WORK/aos__files.dat
indeed
write (*,*)"Opening ",file_name_use
does produce
Opening "WORK/aos__files.dat"
and
call system ("more "//file_name_use)
does
aos0412.all
AOS0412.ALL2
aos.430
bor53402.gps
bor53430.gps
bor53461.gps
.
.
.
which is correct
so, why does
open(unit=35,file=file_name_use)
give me
Fortran runtime error: No such file or directory
???
Anybody's guess?
Thank you.
G
you still appear to be having issues w/ quoting of names
Opening "WORK/aos__files.dat"
the 'call system' should be running a shell which is stripping the
quotes, while the open file doesn't strip them, so its attempting to
open a file that begins (and ends) w/ a literal double-qoute, which it
can't find
.
- Follow-Ups:
- Re: opening char variable data file
- From: GT
- Re: opening char variable data file
- References:
- opening char variable data file
- From: GT
- opening char variable data file
- Prev by Date: Re: IDE for Linux for C/C++ & Fortran
- Next by Date: Re: opening char variable data file
- Previous by thread: opening char variable data file
- Next by thread: Re: opening char variable data file
- Index(es):
Relevant Pages
|