Re: fortran program reading an external text (and numbers) file and writing with edits



Hi,

Sharad_Regmi@xxxxxxxxxxx wrote:
I am looking for some guidence in writing a fortran program which reads
an external file (one page consisting of text and numbers) and
printing the same file (with different name) with some edits.

Can this be done in fortran 90/95? Help appriciated,

Yes it can, however, depending what you want to change and how the text
and numbers are saved, you should better use another programming
language. Especially for heavy string modifications, I think, other
languages are better suited, even though it can be done in Fortran.

Could you give an example (or explain in more details) how a line in
your file looks like and how you want to modify it? Then we can give
you tips how to do it in Fortran. (And/or to advise you not to do it in
Fortran.)

Tobias

.



Relevant Pages

  • Re: Surprise
    ... haven't seen any Fortran libraries that do that. ... Libraries are a huge part of the reason why one language would be ...
    (comp.lang.fortran)
  • Re: one-liner for characater replacement
    ... convert to another language. ... upgrade to upward compatible versions of the same language. ... Under the above rules of the game, unless the Fortran world announces ...  The user base has not shrunk all that much. ...
    (comp.lang.fortran)
  • Re: interpretive vs. compiled
    ... for specific needs in FORTRAN. ... Nowadays, workstations are also available to engineers, and there's no ... Excel/VBA and much less exposure to programming. ... colleges are wondering what language to use in classes. ...
    (comp.programming)
  • Re: Help from fellow Fortran Users
    ... and Fortran in which he introduced the subject of Pascal, ... Pascal is a useful, high-level, portable language that is easy to use ... Inasmuch as his comments considered extensions for Pascal in the '70s, ... standard differs from ...
    (comp.lang.fortran)
  • Re: A petition to J3 apropos FORTRANs future
    ... Fortran folded like an accordion and gave ... The vast majority of programmers are not doing "scientific ... In theory, programmers would just "use the best language for the job", ... But there are reasons, both real and silly, why one ...
    (comp.lang.fortran)