Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!rutgers!uwvax!oddjob!uxc!ksuvax1!eecea!gordon
From: gordon@eecea.eece.ksu.edu (Dwight Gordon)
Newsgroups: comp.lang.pascal
Subject: Re: EOF in TP4?
Keywords: The EOF function in TP3/4 is designed for use with text files.  Turbo Pascal
Message-ID: <383@eecea.eece.ksu.edu>
Date: 9 Aug 88 13:45:09 GMT
References: <5126@killer.DALLAS.TX.US> <6247@chinet.chi.il.us> <381@eecea.eece.ksu.edu> <2645@pt.cs.cmu.edu>
Reply-To: gordon@eecea.UUCP (Dwight W. Gordon)
Organization: Kansas State University, Manhattan, KS USA
Lines: 10

My comment about Reset(file,1) was ment to address the need to use both the
file-variable and the block size in the reset command.  If you use the default
file block size of 128 and the size of the file is not mod-128 then you will
read garbage beyond end-of-file.  Turbo deblocks the file into groups the
size of the parameter in the Reset command.

-- 
Dwight W. Gordon                                 |       913-532-5600        |
Electrical & Computer Engineering Department     |   dwgordon@ksuvm.bitnet   |
Kansas State University - Durland Hall           | gordon@eecea.eece.ksu.edu |
Manhattan, KS 66506      | {pyramid,ucsd}!ncr-sd!ncrwic!ksuvax1!eecea!gordon |