F77: Rename/Moving a file inside a program

From: Babel (hobbit_babelfish_at_yahoo.com)
Date: 11/19/03


Date: 18 Nov 2003 21:58:27 -0800

I have a loop in which I first read a file (file_start.dat) and do
some computations then write out some data to an output file
(file_end.dat)

Now what i need to do is destroy the file_start.dat and rename
file_end.dat to file_start.dat before I exit the loop
How do I do this ?
I would like to avoid readying the file_end.dat to file_start.dat
record by record. As these files are huge and take considerable time
in readying.
I am thinking of making these DIRECT ACCESS by the way.

Can anyone help me out?



Relevant Pages

  • RE: Reading contents of file
    ... 2)I am not able to print the unmatched data i.e in the above example '45' doesn't match the regex in the while loop so this cannot be printed in the output file. ... the existence of the matched pattern which is done by the help of bookref ...
    (perl.beginners)
  • Multi Output
    ... I may have more then 1 output file depending on the input data. ... Do you think it is a good idea to use a dynamic port in a loop and append ... Can I prepare the files in the first orchestration and then call the second ...
    (microsoft.public.biztalk.general)
  • Re: Need some help please ! !
    ... It is far safer to use "less than" in your particular code. ... in your code, it only happens once, then the code drops down to the loop, looking for the next input. ... (Which is why your output file matches your input file) ... Now with this code my output file is the same as my input file :-( ...
    (microsoft.public.vb.syntax)
  • store variables output file
    ... a variable Ain my code is included in a loop over i. ... record only of Ain the output file. ... I know that I can just leave all arrays in memory till the end of the ...
    (comp.soft-sys.matlab)
  • Re: How to break the output file to smaller files - xp_cmdshell
    ... We could do this very easily in SSIS which is of course little consolation. ... In DTS I suppose you could loop over the source and pick up a certain range ... The size of the output file is so big. ...
    (microsoft.public.sqlserver.dts)