home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5238 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  962 b 

  1. Path: sparky!uunet!psinntp!bepcp!jnicholson
  2. From: jnicholson@bowker.com (Jim Nicholson)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: bk asks: File Handle in TP
  5. Keywords: interrupts, file handle, FileRec.handle
  6. Message-ID: <7TJRqB1w164w@bowker.com>
  7. Date: Mon, 07 Sep 92 23:35:41 EDT
  8. References: <1992Sep7.021438.9222@murdoch.acc.Virginia.EDU>
  9. Organization: Bowker Electronic Publishing, New Providence NJ
  10. Lines: 22
  11.  
  12. bk@Turing.ORG (Brian Knatz) writes:
  13.  
  14. >
  15. > Question:
  16. >       If I have a FILE, f, and a FileRec, fr, how do I get them to
  17. > refer to the same file?
  18. >       How, given an assigned-and-reset f do I take a look at the its Handle?
  19.  
  20. FileRec is generally used in a typecast; for example
  21.  
  22. var
  23.    F : File;
  24. ...
  25.  
  26. With FileRec(F) do
  27.    {Something with F's handle}
  28.  
  29.  
  30.  
  31. Jim Nicholson                          Internet: jnicholson@bowker.com
  32. Any opinions expressed are not         FidoNet : 1:2605/705.0
  33. necessarily my own                     Voice   : 908-665-2864
  34.