home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!slip03.telnet1.QueensU.CA!dmurdoch
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Subject: Re: How can I see if a file is open?
- Message-ID: <dmurdoch.52.715313959@mast.queensu.ca>
- Lines: 15
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- References: <al161926.715305119@academ01> <29hn7+#.gabriel@netcom.com>
- Date: Tue, 1 Sep 1992 02:19:19 GMT
-
- In article <29hn7+#.gabriel@netcom.com> gabriel@netcom.com (Gabriel Beccar-Varela) writes:
- > It is very simple: if your file is a textfile you check as follows:
- >
- > if TextRec(myfile).mode <> fmClosed then...
- >
- > if your file is typed or untyped you say:
- >
- > if FileRec(myfile).mode <> fmClosed then ...
- typo ----------------------------^^^^^
-
- One warning: before you've done an assign to myfile, the mode is
- undefined. It could be fmClosed, fmOpen, or any other value.
-
- Duncan Murdoch
- dmurdoch@mast.queensu.ca
-