Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
From gpc-owner@gnu.de Tue Feb 17 10:02:35 2004
Received: from mond.dida.physik.uni-essen.de ([132.252.79.233])
by adele.gerwinski.de with esmtp (Exim 3.35 #1 (Debian))
id 1At17i-0007ai-00
for <gpc@gnu.de>; Tue, 17 Feb 2004 10:02:34 +0100
Received: (from lange@localhost)
by mond.dida.physik.uni-essen.de (8.11.6/8.11.6/SuSE Linux 0.5) id i1H8vdf01650
for gpc@gnu.de; Tue, 17 Feb 2004 09:57:39 +0100
Date: Tue, 17 Feb 2004 09:57:39 +0100
From: Eike Lange <eike.lange@uni-essen.de>
To: GNU Pascal <gpc@gnu.de>
Subject: Re: Stdin & Stdout
Message-ID: <20040217095739.B1244@mond.dida.physik.uni-essen.de>
Mail-Followup-To: GNU Pascal <gpc@gnu.de>
References: <4031C859.20905@pacbell.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4031C859.20905@pacbell.net>
User-Agent: Mutt/1.3.22.1i
X-Statement: Patent inflation is not a victimless crime. See http://www.ffii.org
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mond.dida.physik.uni-essen.de id i1H8vdf01650
X-Archive-Number: 200402/44
X-Sequence-Number: 3647
Hello!
On Mon, Feb 16, 2004 at 11:52:57 -0800, Daniel Rudy wrote:
> I'm trying to build a program under Unix, and I'm trying to use stdin
> and stdout to do this, but it keeps telling me that the symbols are not
> defined.
Try using:
uses GPC;
in your program.
> I've tried stdin, stdout, standardinput, standardoutput, and used
> filenames such as 'stdin' and 'stdout'. How does one transfer
> information between stdin and stdout on unix systems through GPC?
program Foo (input, output);
{...}
begin
Reset (input);
ReWrite (output);
while not EOF (input) do
begin
ReadLn (input, LineOfText);
WriteLn (output, LineOfText)
end;
{ ... }
end.
--=20
Didaktik der Physik; Uni Duisburg-Essen; Universit=E4tsstr. 2; 45117 Essen
Tel (0201) 183 - 2575 ; Fax (0201) 183 - 2466
http://www.gnushi.de
Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Frank Heckenbach | Stdin & Stdout | 17 Feb 2004, 14:48:03 |
| Author | Subject | Date |
|---|---|---|
| Daniel Rudy | Stdin & Stdout | 16 Feb 2004, 23:52:57 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).