Re: copy and move files



Charles Russell wrote:
Fluid wrote:

Hi, i need help.i am a quite new user of fortran. I would like to
rename a file (used as input file) and move it to another directory.
Which command can I use?
thanks

If you are indeed a *user* rather than a *programmer*, you may find it simpler to separate the math from the housekeeping, and call both your fortran code and the system utilities from a makefile, a shell script, or one of the many scripting languages.

Perhaps this was too terse for a novice, so I'll elaborate. Fortran is easy if you stick to math, but otherwise things can get quite complicated. So for simplicity do the math in fortran, try to find some simple high-level tool for anything else, and glue everything together in a script. I usually do this with an extra target or two in the same makefile that builds the fortran executable. Learning to use makefiles (and to build libraries) is worth the hassle even for an occasion/casual *user*.
.



Relevant Pages

  • Re: IF DEAD, GOTO 10-3-39
    ... mathematically its the exact same thing. ... The original topic was how FORTRAN finally ... made math computation easily manageable. ... I don't consider programming in assembler to be ...
    (rec.sport.football.college)
  • Re: latex2html: pnmcolormap error with cite{citekey}
    ... math by converting each formula to an image. ... superscript format, then math mode is employed ... citations separately, apart from any math and it is ... this means your input file is empty. ...
    (comp.text.tex)
  • Re: I want to write HAL in C++ !
    ... > recursive descent parsing for arbitrarily complex math FORmulas, ... On the subject of Fortran you are obnoxious and ignorant. ... been spelled with all upper caps since the 1990 standard. ... Do you think libraries like LAPACK are "fragile cruft"? ...
    (comp.lang.cpp)
  • Re: Need help with PHP & SQL code, new to this.
    ... > I am trying to pull a time stamp out of a database,looks like this ... Why not just do the math on ... - assigning each to a variable within your script. ... date/time string below for ease, but you would populate them using the ...
    (comp.lang.php)
  • Re: math.sqrt() in new 3.0 version : solution in input()
    ... >>> import math ... An entry of 9 or 9.0 will yield 3.0 ... Yet the same code in a script gives an error message ... Some thought I was not using the Python 3 command line. ...
    (comp.lang.python)