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