Re: handling text



igthibau wrote:

Hello everyone !
I am writing a prog to read a text file in order to pick out its contents : the words contained within, and put them in vectors for later analysis.
so I wish to take individual words from a file and save each in a arrays.
Does anyone know if there is an easi(er) way , through fortran (f77) or else ??? to do that ??? (apart from writing a routine, which, with f77's
ease of handling text - according to what I know of it - might be fun (not!)).

I'm fairly familiar with text handling in C, REXX, Perl, Expect, Basic, Jovial, Ada, COBOL, IBM's Script/GML and similar text/document programming languages (one on Harris VOS that I've forgotten the name of), and a few others. I don't see that Fortran's all that deficient in comparison, as a general purpose high-level language. Each has it's quirks, advantages, and disadvantages. I do wish Fortran had a native variable length string as a minor convenience (mainly so I don't have to use trim almost everytime I want to concatenate), but I've never been significantly limited by not having it. Script/GML (superior precursor to SGML) is amazing though...





thanks for any help

G





--

Gary Scott
mailto:garyscott@xxxxxxx

Fortran Library:  http://www.fortranlib.com

Support the Original G95 Project:  http://www.g95.org
-OR-
Support the GNU GFortran Project:  http://gcc.gnu.org/fortran/index.html

Why are there two?  God only knows.


If you want to do the impossible, don't hire an expert because he knows it can't be done.


-- Henry Ford
.