Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!ucla-cs!uci-ics!gateway From: jduarte@BONNIE.ICS.UCI.EDU Newsgroups: comp.lang.pascal Subject: writing a disk file to a full disk Message-ID: <8909281232.aa13997@BONNIE.ICS.UCI.EDU> Date: 28 Sep 89 19:32:39 GMT Sender: mmdf@paris.ics.uci.edu (PostMaster) Lines: 25 To: comp.lang.pascal@BONNIE.ICS.UCI.EDU Hello, I need some help on the topic of disk operations...and NO, this question has nothing to do with my homework !!! Is there any easy way in TP 5.0 to tell whether a disk file is CLOSED or OPEN...I mean, suppose that I write ASCII characters to a disk file and then the disk becomes full...I can check for an IO error using the IOresult system function, but sometimes, I try to write a message to the screen after detecting an IO error, and the TP integrated environment traps this writeln statement as an IO error....Even though I compiled using the directive {$I-} and after reading the IO status IOresult immediately after the disk write.... I tried closing the disk file immediately after I detected an IO error, but my system just hangs after the file is closed (reboot needed) or TP 5.0 reports that I am trying to close a closed file...Hmmmmmmmmmmmmmmmm. Any thoughts from the TP gurus will be appreciated, and please, NO snide remarks. Thanks, Jose Duarte University of California, Irvine jduarte@bonnie.ics.uci.edu