comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Truncating file with OPENU
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Truncating file with OPENU [message #42342] Fri, 28 January 2005 12:52
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
My question was probably best phrased in this group by Norbert Hahn more
than 10 years ago (without any replies):

**********
Jan 2 1995, 7:34 am
How do I truncate a file without copying the data to another file and
deleting the original ?

I don't have the disk space to hold both copies. OpenU allows to read
and write files but unless I add records the size is not changed.

Thanks for any help
Norbert Hahn

********

There used to be a VMS keyword TRUNCATE_ON_CLOSE to OPENU that would do
what I want: truncate the file at the current file pointer position when
the file was closed. I'd prefer an OS-independent method.

--Thanks --Wayne Landsman
[Message index]
 
Read Message
Previous Topic: Re: Dialog_Write_Image woes
Next Topic: Re: Truncating file with OPENU

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:48:58 PDT 2025

Total time taken to generate the page: 0.00437 seconds