home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sdrc!thor!scjones
- From: scjones@thor.sdrc.com (Larry Jones)
- Newsgroups: comp.os.vms
- Subject: Re: C programming question under VMS
- Keywords: VMS,C
- Message-ID: <2398@sdrc.COM>
- Date: 14 Dec 92 21:54:06 GMT
- References: <2354@sdrc.COM> <1992Dec9.215244.8634@unet.net.com> <Bz1s8H.55C@micrognosis.co.uk>
- Sender: news@sdrc.COM
- Lines: 17
-
- In article <Bz1s8H.55C@micrognosis.co.uk>, nreadwin@micrognosis.co.uk (Neil Readwin) writes:
- > |> In article <2354@sdrc.COM> daniel.seewer@sdrc.com (Dan Seewer) writes:
- > |> > How can I, in C under VMS, truncate a file but preserve the
- > |> > version number (I want to preserve all the filesystem specifics about
- >
- > You can do what the original poster
- > asked by opening with mode "a+" and the using fseek to rewind the file.
-
- If that really overwrites the previous contents of the file, it's a bug
- in VAXCRTL and should not be relied upon. Append mode is supposed to
- force all writes to the end of the file *reguardless* of intervening
- file positioning calls.
-
- ----
- Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH 45150-2789 513-576-2070
- larry.jones@sdrc.com or ...uunet!sdrc!larry.jones
- I obey the letter of the law, if not the spirit. -- Calvin
-