home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!mimsy!nocusuhs!nmrdc1!frmug!lill!vanney.raphael
- From: vanney.raphael@lill.frmug.fr.mugnet.org (Vanney Raphael)
- Newsgroups: comp.lang.pascal
- Subject: I/O REDIRECTION IN A TURB
- Message-ID: <1023.6.uupcb@lill.frmug.fr.mugnet.org>
- Date: 23 Dec 92 00:35:00 GMT
- Reply-To: vanney.raphael@lill.frmug.fr.mugnet.org (Vanney Raphael)
- Organization: Li'LL BBS - Paris, France
- Lines: 25
-
- SD> My questions are :
-
- SD> 1. Does somebody know how TP I/O is implemented (or where on
- SD> the net such information may be found) ?
-
- SD> 2. Is there a more or less elegant (and reliable) way to redirect
- SD> I/O that will work BOTH for TurboPascal and DOS ?
-
- TP's IO handling is done fully via DOS, so what DOS redirects, TP
- redirects... Except for screen I/O, if you use the CRT unit.
- In this case, you have to do
-
- Assign(OutPut, '') ;
- ReWrite(OutPut) ;
- Assign(InPut, '') ;
- ReSet(InPut) ;
-
- to restore DOS and TP's std input/output files' link.
-
- Alp, Raphael.
-
- * OLX 2.1 TD * Ain't got anything serious to write here ?
- --- FMail 0.92
- * Origin: ICEBERG - La Garenne * FRANCE * Tel:(33)-1-47699261 (2:320/1)
-
-