Re: fortran code for 'cp' / subroutine file_copy



Unformatted files have a particular structure in Fortran. Arbitrary
text files are
unlikely to conform to that structure, which is compiler-dependent as
well.

Your best bet is to open the files as direct-access with a small record
length.

Regards,

Arjen

.



Relevant Pages

  • Re: For your amusement -- Re: Lahey FORTRAN for DOS
    ... > implementation which didn't implement backspace of unformatted files: ... I am pretty sure OS/360 Fortran can do BACKSPACE, ... Fortran compilers, also. ... satisfied by Fortran unformatted (VBS) files. ...
    (comp.lang.fortran)
  • Re: Fortran 77 - File reading problem
    ... Be aware that unformatted files are machine- and compiler-dependent. ... Whenever anyone is asking for debugging help and ... variable types. ...
    (comp.lang.fortran)
  • Re: Complex : mixing C and fortran
    ... This is compiler-dependent in theory. ... struct will always map to the Fortran complex*16 for every ... Why not use one of the available C/C++ Lapack wrappers rather than ... If not, the source code cannot ...
    (comp.lang.fortran)
  • Help :Writing potable unformated files in fortran
    ... When porting codes from BIG_ENDIAN machines to ... I wanted all the unformatted files to ... I also found out that GNU Fortran compiler does not have any options ...
    (comp.lang.fortran)
  • Re: questions on binary vs text files
    ... I'm guessing unformatted in Fortran, ... However, Fortran unformatted files ... have some overhead for each written record. ... A formatted file would use one byte per digit, ...
    (comp.lang.fortran)