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

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!csd4.csd.uwm.edu!randyd
  2. From: randyd@csd4.csd.uwm.edu (Randall Elton Ding)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: I/O REDIRECTION IN A TURB
  5. Date: 26 Dec 1992 20:18:03 GMT
  6. Organization: Computing Services Division, University of Wisconsin - Milwaukee
  7. Lines: 30
  8. Message-ID: <1hielrINN5vn@uwm.edu>
  9. References: <1023.6.uupcb@lill.frmug.fr.mugnet.org>
  10. NNTP-Posting-Host: 129.89.7.4
  11.  
  12. In article <1023.6.uupcb@lill.frmug.fr.mugnet.org> vanney.raphael@lill.frmug.fr.mugnet.org (Vanney Raphael) writes:
  13. >SD>  My questions are :
  14. >
  15. >SD>    1. Does somebody know how TP I/O is implemented (or where on
  16. >SD>       the net such information may be found) ?
  17. >
  18. >SD>    2. Is there a more or less elegant (and reliable) way to redirect
  19. >SD>       I/O that will work BOTH for TurboPascal and DOS ?
  20. >
  21. Hi, I'm not sure who made the origional post, the message was deleted from
  22. my system.  However if this person or anyone is interested in a UNIT which
  23. I wrote a fiew months ago to do this, I will gladly supply the source
  24. via Email.
  25.  
  26. The unit does the following...
  27. (1) redirects output to another device or if a path is specified, a file.
  28. (2) redirects input from another device or a file.
  29. (3) has printeron/printeroff commands, so the {lst} parameter is not needed.
  30. (4) allows you to change printer output ports.
  31. (5) automatically checks to make sure a valid device or file has been
  32.     selected for input/output, and returns an error code if generated.
  33. (6) fully supports the crt unit driver.
  34. (7) it's smart enough to remember the previous driver, so when your done
  35.     let's say with writing output to a file, the command restoreoutput 
  36.     will redirect the output back to the driver which was active before
  37.     data was sent to the file.
  38.  
  39.  
  40. Randy.  randyd@csd4.csd.uwm.edu
  41.  
  42.