Re: a.out file



In article <1117235333.201538.254820@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"wiggy13" <wiggy13@xxxxxxxxx> writes:
>
> however if I type a.out < infile and enter I got problem

You are using file redirection on the command line. The
first line of infile needs to please

> read (*, '(a80)') infile

this read statement, so that

> lun = 10
> open (unit=lun, file=infile,form='formatted',ACCESS='DIRECT',
> + status='old')

this open statement works.

Does your infile match these expectations?

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.



Relevant Pages

  • Re: Joining Big Files
    ... infile = file ... Just use os.systemand the UNIX cat command - the requirement here ... cat will take care of buffering, ...
    (comp.lang.python)
  • Re: Joining Big Files
    ... infile = file ... Just use os.systemand the UNIX cat command - the requirement here ... cat will take care of buffering, ...
    (comp.lang.python)
  • Re: using std::system
    ... Edo wrote: ... >> Why not simply write code that counts the number of lines in 'infile'? ... >> wc may be faster, but having to execute that command, and open the ...
    (alt.comp.lang.learn.c-cpp)