home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7681 < prev    next >
Encoding:
Internet Message Format  |  1992-12-25  |  1.3 KB

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