[fpc-pascal]Read STIN on FreeBSD
Michael.VanCanneyt at Wisa.be
Michael.VanCanneyt at Wisa.be
Thu Mar 8 22:24:05 CET 2001
On Thu, 8 Mar 2001, Si. wrote:
> I think you miss the point of what i want.
>
> I was to be able to read from stdin. i.e. i want to be able to pipe '|' data
> into a program. That was purely an example. I would assume this is quite a
> trvial thing to do but as of yet i havent been able to figure it out.
What about a simple
program readsomething;
Var
S : String;
begin
While not EOF do
begin
readln(s);
writeln('Got : ',S);
end;
end.
I would think this is basic pascal syntax.
Michael.
More information about the fpc-pascal
mailing list