[fpc-pascal]opening files from a text list
anton.tichawa at chello.at
Sat Nov 29 23:40:36 CET 2003
On Saturday 29 November 2003 13:32, you wrote:
> > >>here is just another approach.
> > >
> > > I'll have a look at that as well. Why doesn't the compiler have the
> > > ability to read a word? All of this extra code needed because I have to
> > > read words one character at a time! It would be the single most useful
> > > addition. I don't understand why compilers have no problems reading
> > > multi-digit numbers in one hit, but can't do the same with words.
> > I guess for several reasons:
> > - it would require char set handling, only a minority uses only a-z as
> > possible chars in words
> That means you define what makes up a word. You could also simply define
> what _separates_ a word ;-)
But, as Murphy predicts, that very separator will sooner or later appear
within a valid word.
@Donald: There ARE problems when reading numbers, e. g. "1000.0" is sometimes
written as "1000,0", "1'000.0", "1,000.00" or even "1,000.--". It's a matter
of negotiation: The more formal the text file, the easier it can be read by a
Ing. Anton Tichawa
Volkertstrasse 19 / 20
phone: +43 1 218 97 59
email: anton.tichawa at chello.at
"Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte
Doris Langley Moore: Ada, Countess of Lovelace (London 1977).
More information about the fpc-pascal