home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18391 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.3 KB

  1. Path: sparky!uunet!munnari.oz.au!jabaru.cec.edu.au!csource!gateway
  2. From: John.Gibney@f386.n632.z3.fidonet.org (John Gibney)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: c programming questi
  5. Message-ID: <724433346.AA01308@csource.oz.au>
  6. Date: Sat, 12 Dec 1992 21:51:08
  7. Sender: gateway@csource.oz.au
  8. Lines: 32
  9.  
  10.  -=> Quoting Daniel.seewerC programming question undrc.com to All <=-
  11.  
  12.  Da> From: daniel.seewer@sdrc.com (Dan Seewer)
  13.  Da> Organization: SDRC
  14.  
  15.  Da> How can I, in C under VMS, truncate a file but preserve the 
  16.  Da> version number (I want to preserve all the filesystem specifics about
  17.  Da> the file).  I trying to using fopen() and have tried the following
  18.  
  19. [... text deleted ...]
  20.  
  21.  Da> This really seems like a simple thing to do but I have yet to come up
  22.  Da> with an elegant solution for it under VMS (under UNIX it works just
  23.  Da> fine).
  24.  
  25. Do you *have* to maintain the version number for a specific
  26. reason?  Can you let RMS do it for you?; i.e.
  27.  
  28.         $ set file/version_limit=1 DATA.DAT
  29.  
  30. I don't have access to the doc set but I'd imagine you'd be
  31. able to use RMS/RTL routines or the system services to do
  32. what you want...  Using good ol' FORTRAN and BASIC doesn't
  33. cause any problems here! ;-)
  34.  
  35.  
  36. John  :-)
  37.  
  38. ... The VMS MasterHarper!
  39. ___ Blue Wave/QWK v2.10
  40.  
  41.  * Origin: Eastern Mail Centre [PEP] OZ. +61-3-725-1621 (3:632/386)
  42.