[comp.lang.c] Chopping a file

ron@vpnet.chi.il.us (Ron Winograd) (06/07/90)

Okay, here is the deal.
I need a c script, or a technique, or any reference of how to delete
stuff from the end of a file WITHOUT MAKING ANY KIND OF COPY OF THE FILE.
Simpply to just chop off the end. Is this even possible?
Repeat: WITHOUT MAKING ANY KIND OF COPY:
Example: Emacs and vi use buffers to store changes and then copies the buffer
over onto the original file. I can't find a single program that doesn't do this
also. Split leaves the original unsplit file on the system.

ANY kind of info as to how this can be done, or if it can be done at all, would
be IMMENSEly appreciated.

As I don't read this news group, please email your response. If I any one else
wants to know, email me and I will either post soloutions that work, or email
them back.

Thanks in advance
-Ron
-----------------------------------------------------------------------------
|Ron Winograd  | I have no witty, funny or otherwise intelligent thing to   |
|ron@          | say here, so I guess I am just filling space. I don't even |
|vpnet.chi.il.us| need a stupid disclaimer, cause I don't work for anyone,  |
|<empty space> | so I have nothing to disclaim. Now if you are reading this,|
|<empty space> | then you are wasting time. There is better stuff to read!  |
-----------------------------------------------------------------------------