[fpc-pascal] Pascal data flows
poof65
webmaster at poof65.com
Tue Apr 12 21:38:35 CEST 2005
Wonderful, it works fine.
Thank you for your answer Michael.
>
>
>On Tue, 12 Apr 2005, poof65 wrote:
>
>> Hello mailing user.
>> I'm a poor french guy who had a little problem ;-)
>> I've read in a book that it was possible to redirect data flows to files.
>>
>> After doing my research on google, i've found a webpage talking about it.
>> http://www.ictp.trieste.it/~manuals/programming/sun/pascal/lang_ref/ref_io.doc.html#327
>>
>> I've tried to make a little program with theses examples.
>>
>> program test (output);
>> begin
>> rewrite(output, 'test.txt');
>> end.
>
>That will not work. You'll need to do something like
>
> program test (output);
>
> begin
> Close(output);
> Assign(output, 'test.txt');
> Rewrite(output);
> Writeln('This should go to test.txt');
> Close(output); // don't forget this.
> end.
>
>Here it works.
>
>Michael.
>
>_______________________________________________
>fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list