Re: copy and move files
- From: "Arjen Markus" <arjen.markus@xxxxxxxxxx>
- Date: 29 Mar 2007 06:10:45 -0700
On 29 mrt, 15:08, "Beliavsky" <beliav...@xxxxxxx> wrote:
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- Tekst uit oorspronkelijk bericht niet weergeven -
- Tekst uit oorspronkelijk bericht weergeven -
Oops, you are right - you might even add '"' around the file names
to get it absolutely (?) foolproof.
Regards,
Arjen
.
- References:
- copy and move files
- From: Fluid
- Re: copy and move files
- From: Arjen Markus
- Re: copy and move files
- From: Beliavsky
- copy and move files
- Prev by Date: Re: copy and move files
- 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
|
|