[fpc-pascal]System unit and readln
Marco van de Voort
marcov at stack.nl
Thu Jun 19 15:02:50 CEST 2003
> On Thu, 19 Jun 2003, Marco van de Voort wrote:
> > > Where can I find the declaration of read, readln, write and writeln
> > > procedures? I've searched the whole source package for fpc and didn't
> > > find even header of those function, where they are?
> >
> > These aren't proper procedures, and the compiler generates "special" code
> > for it.
> >
> > So there is no definition.
> >
> > If you are merely searching for a way to do variable number of arguments,
> > look in the help for "array of const"
>
> I need to know which system function have to be blocked to block writeln,
> write function. And as I see I can't block it
Yes you can. See the Crt unit. In practice you have to redefine the handlers in
the output handle (stdout under C) so that those handlers don't do anything with
the input (or redirect it to where you want)
close(output);
assign(Output,'text.txt');
rewrite(Output);
might alread do something.
More information about the fpc-pascal
mailing list