home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.hut.fi!usenet
- From: oahvenla@hyppynaru.cs.hut.fi (Osma Ahvenlampi)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Q: Output from Workbench program.
- Date: 16 Mar 1996 19:07:07 +0200
- Organization: What, me, organised?
- Sender: oahvenla@hyppynaru.cs.hut.fi
- Distribution: inet
- Message-ID: <jdjybp1klvo.fsf@hyppynaru.cs.hut.fi>
- References: <4i9b48$8n7@nz12.rz.uni-karlsruhe.de>
- NNTP-Posting-Host: hyppynaru.cs.hut.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- In-reply-to: uhay@rzstud1.rz.uni-karlsruhe.de's message of 14 Mar 1996
- 14:40:08 GMT
- X-Newsreader: Gnus v5.1
-
- In article <4i9b48$8n7@nz12.rz.uni-karlsruhe.de> uhay@rzstud1.rz.uni-karlsruhe.de (David Luebbren) writes:
- >I want to do output from a workbench started program similar to the way it
- >is done with STDOUT and STDERR in SAS/C but using the amiga file handles.
- >From several examples I gathered the following code but it doesn't work.
- >What is wrong with it?
- > us->pr_CIS = fh;
- > us->pr_COS = Open ("*", MODE_OLDFILE);
-
- eeww.. Never mess with OS structures directly if there is any choice,
- and don't mess with them even if there is no choice. Use Input(),
- Output(), SelectInput() and SelectOutput() to redirect the standard IO
- streams.
-
- --
- A lie in time saves nine.
- | "Osma Ahvenlampi" <mailto:oa@iki.fi> <http://www.iki.fi/oa/> |
- | Amiga&BeBox&ClassAct&Voodoo&ARTech cool stuff: I-Net225&AWeb |
- --
-