Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!tikal!hplsla!davidr From: davidr@hplsla.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo Pascal file prob Message-ID: <5280009@hplsla.HP.COM> Date: Mon, 29-Jun-87 19:41:32 EDT Article-I.D.: hplsla.5280009 Posted: Mon Jun 29 19:41:32 1987 Date-Received: Sat, 4-Jul-87 00:46:42 EDT References: <8.352645a231@chemo.uucp> Organization: HP Lake Stevens, WA Lines: 12 This could be the bug/feature of the Turbo Pascal append command I ran into last year. I called Borland, and the comment was that the file you are going to append to must not only exist, but end-of-file (the point where it will begin to append) must be a 1A (a control-Z) character. If the file does not exist that you want to append to, then doing a RESET will cause a run-time error. However, if the file does exist but does not have a control-Z terminating character, then the run-time error is likely to occur in trying to CLOSE the "non-existing" file. (I just tested this quickly, and even though it was difficult to create a zero length file, when I ran your program on that file, it aborted on the CLOSE command.)