home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19263 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.2 KB

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