[fpc-pascal]opening files from a text list

Florian Klaempfl Florian.Klaempfl at gmx.de
Sat Nov 29 16:27:48 CET 2003


Marco van de Voort 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 ;-)

This isn't easy either, just consider the different quotation marks or 
questions marks (Spanish!) in different languages. It doesn't solve the 
problem, if you know the chars seperating words, you know the chars 
allowed in a word ;)






More information about the fpc-pascal mailing list