Re: opening char variable data file



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
.