RE: [fpc-pascal]opening files from a text list

2003-11-29 Thread Alan Mead
Donald, What happens if the "Mighty Ducks" or the "White Sox"--or my favorite, "Eat at Joe's" play? The compiler reads strings just fine but you as the programmer need to understand data types. You also need to understand your problem. Parsing arbitrary and possibly inconsistent psuedo-English

Re: [fpc-pascal]opening files from a text list

2003-11-29 Thread Florian Klaempfl
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 understa

Re: [fpc-pascal]opening files from a text list

2003-11-29 Thread Anton Tichawa
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

Re: [fpc-pascal]opening files from a text list

2003-11-29 Thread Laurent Cocea
Or you could wrap it around a Perl script. Perl is particularly good at parsing text and generating arrays from strings and vice-versa. And then you can call your Pascal-generated code from within the script using the array elements as arguments, liek this: #!/usr/bin/perl -w my @arguments; my $a

Re: [fpc-pascal]opening files from a text list

2003-11-29 Thread Marco van de Voort
> >>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 unders

Re: [fpc-pascal]opening files from a text list

2003-11-29 Thread Florian Klaempfl
DONALD PEDDER 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 wh