Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cmcl2!brl-adm!adm!ZRWA001%DTUZDV1.BITNET@wiscvm.wisc.EDU From: ZRWA001%DTUZDV1.BITNET@wiscvm.wisc.EDU Newsgroups: comp.lang.pascal Subject: Re: DOS file handles in TURBO Message-ID: <9466@brl-adm.ARPA> Date: Thu, 24-Sep-87 06:35:23 EDT Article-I.D.: brl-adm.9466 Posted: Thu Sep 24 06:35:23 1987 Date-Received: Sat, 26-Sep-87 11:17:54 EDT Sender: news@brl-adm.ARPA Lines: 22 Turbo pascal keeps the file handle in the filevariable. Example: instead of VAR DAT:FILE OF ... you can write: VAR DAT:RECORD CASE INTEGER OF 1:(FIL:FILE OF ...); 2:(HANDLE:INTEGER; RECORDLENGTH:INTEGER; BUFFEROFFSET:INTEGER; BUFFERLENGTH:INTEGER; BUFFERPOINTER:INTEGER; BUFFEREND:INTEGER; PATH:ARRAY12..75!OF CHAR;); where HANDLE is the file handle used by DOS or $FFFF if file is closed and PATH is an ASCIIZ string of the full filename. When you close a file with the DOS call you have to set the HANDLE in the file variable to $FFFF and perhaps the BUFFERPOINTER to BUFFEROFFSET. I hope this helps but I haven't tested this. Helmut (ZRWA001@DTUZDV1.BITNET) P.S. What's about INFO-PASCAL BITNET side after the shutdown of WISCVM ??