Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!IFI.UIO.NO!ingea From: ingea@IFI.UIO.NO (Inge Bj|rnvall Arnesen) Newsgroups: comp.os.msdos.programmer Subject: Re: How do I SHORTEN a file without rewriting it? Message-ID: <9011031042.AAsvarte24141@svarte.ifi.uio.no> Date: 3 Nov 90 10:42:30 GMT References: <9505@jarthur.Claremont.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of Oslo, Norway Lines: 23 In article <9505@jarthur.Claremont.EDU> you write: >In article <747@csource.oz.au> david@csource.oz.au (david nugent) writes: >>Write zero bytes at that position. > >If this works, it isn't documented in the Microsoft C manuals I have. >(And believe me, I searched!) After SEVERAL calls to Microsoft, >(Two seperate people told me it couldn't be done from either within C or >through DOS! No, it's not documented in the MSC manuals, and I have never been able to write 0 bytes to DOS through the C write()-call. But, that writing 0 bytes will set current file size is well documented in MS DOS tech. ref. and other techinical MS DOS manuals and books, and the fact that MicroSoft could not help you says more about MS than the write system call. -- Inge (BoB) { ingea@ifi.uio.no } ========================================================================= == Inge Arnesen, University of Oslo, Norway. == == ==