Re: copy and move files
- From: "Beliavsky" <beliavsky@xxxxxxx>
- Date: 29 Mar 2007 06:08:24 -0700
On Mar 29, 7:19 am, "Arjen Markus" <arjen.mar...@xxxxxxxxxx> wrote:
On 29 mrt, 12:03, "Fluid" <bernardini.chi...@xxxxxxxxx> 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
Fortran is not really suited for this type of tasks.
What you can do is one of the following:
1. Use the "system" subroutine. It is a common extension to
the standard. You can use it to run system commands:
character*100 command
write( command, '(4a)' ) 'copy ', file1, ' ', file2
call system(command)
call system("copy " // trim(file1) // " " // trim(file2))
is more concise and more general, since it will work even if the file
names are long
.
- Follow-Ups:
- Re: copy and move files
- From: Arjen Markus
- Re: copy and move files
- References:
- copy and move files
- From: Fluid
- Re: copy and move files
- From: Arjen Markus
- copy and move files
- Prev by Date: Re: BOZ literal constants, a puzzle for us Standard-loving types.
- Next by Date: Re: copy and move files
- Previous by thread: Re: copy and move files
- Next by thread: Re: copy and move files
- Index(es):
Relevant Pages
|
|