home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d1xx
/
d183
/
pcq
/
examples
/
wherefrom.p
< prev
Wrap
Text File
|
1989-02-25
|
371b
|
19 lines
Program WhereFrom;
{$I "include/dos.i"}
var
stdfile : FileHandle;
begin
{ Calling Input() will always give you the filehandle of standard
input, since that's where the startup code gets it from }
stdfile := Input();
if IsInteractive(stdfile) then
writeln('Input is coming from the console.')
else
writeln('Input is comming from a file.');
end.