Re: opening char variable data file



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

.



Relevant Pages

  • Re: Adding shortcuts to sidebar of "Open File" dialog box
    ... Is there a way to add shortcuts to the sidebar on the left-hand side of the Open File dialog box? ... You have to enter paths in all fiveand dont use quotes around path. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: CreateFile fails
    ... Use wcsrchrto strip out extra parts with '\' as delimiter. ... Append \\Files\\%s.bak to the result of step 2. ... I am trying to open file via parent directory as follows: ...
    (microsoft.public.pocketpc.developer)