Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cwruecmp!hal!ncoast!tdi2!brandon From: brandon@tdi2.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Truncating MS-DOS files Message-ID: <137@tdi2.UUCP> Date: Fri, 20-Feb-87 16:39:27 EST Article-I.D.: tdi2.137 Posted: Fri Feb 20 16:39:27 1987 Date-Received: Sun, 22-Feb-87 03:29:56 EST References: <1987Feb15.123004.21019@gpu.utcs.toronto.edu> <2596@well.UUCP> <3105@gitpyr.gatech.EDU> Reply-To: brandon@tdi2.UUCP (Brandon Allbery) Followup-To: comp.sys.ibm.pc Organization: Tridelta Industries, Inc., Mentor, OH Lines: 32 Quoted from <3105@gitpyr.gatech.EDU> ["Re: Truncating MS-DOS files"], by roy@gitpyr.gatech.EDU (Roy Mongiovi)... +--------------- | In article <2596@well.UUCP>, tenney@well.UUCP (Glenn S. Tenney) writes: | > That is exactly the way it is documented! | > RTFM: function 28 Random Block Write | > ... If CX is zero upon entry, no records are written, but the | > file is set to the length specified by the random record field, | > whether longer or shorter than the current file size. | | Well, quite some time ago I also heard that CX=0 on a write would truncate | the file. When I became curious about it recently, I looked in the IBM | PC-DOS Technical reference manuals for DOS 2.1 and 3.0 (the only ones I | had available). I looked in the function documentation distributed to | OEM's by Microsoft for MS-DOS 2.0. I also looked in the book | "Advanced MS-DOS" by Ray Duncan. | | None of these sources mentioned a thing about CX=0 being a legal value or | not, much less saying that it allows you to truncate a file. +--------------- Well, we now have *another* reason not to buy Big Blue! This was quite clearly documented in my ITT DOS manual, which came with the computer. ++Brandon -- ``for is he not of the Children of Luthien? Never shall that line fail, though the years may lengthen beyond count.'' --J. R. R. Tolkien Brandon S. Allbery UUCP: cbatt!cwruecmp!ncoast!tdi2!brandon Tridelta Industries, Inc. CSNET: ncoast!allbery@Case 7350 Corporate Blvd. INTERNET: ncoast!allbery%Case.CSNET@relay.CS.NET Mentor, Ohio 44060 PHONE: +1 216 255 1080 (home) +1 216 974 9210