Re: opening char variable data file
- From: GT <gthibaud@xxxxxxxx>
- Date: Wed, 31 Oct 2007 13:53:25 +0000
OldSchool wrote:
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
YEP, a real pain too! Can't seem to avoid it though.
Opening "WORK/aos__files.dat"
the 'call system' should be running a shell which is stripping the
quotes,
should ??? meaning ?
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
I had gathered that much, so it is good to get confirmation. How do I get
around it ????
Thanks for any ideas.
G
.
- References:
- opening char variable data file
- From: GT
- Re: opening char variable data file
- From: OldSchool
- opening char variable data file
- Prev by Date: Re: memory leak after calling a fortran function
- Next by Date: Re: memory leak after calling a fortran function
- Previous by thread: Re: opening char variable data file
- Next by thread: Re: opening char variable data file
- Index(es):