Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!asi!disc.dla.mil!dsacg3.dsac.dla.mil!nto0302 From: nto0302@dsacg3.dsac.dla.mil (Bob Fisher) Newsgroups: comp.lang.c Subject: Truncating an existing file Message-ID: <3172@dsacg3.dsac.dla.mil> Date: 23 Apr 91 20:23:45 GMT Distribution: usa Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 11 How can I truncate the end of a large file without copying the part to be preserved to a new file and then doing a remove/rename? This is for SVR3 but may need ported to BSD4.3. The only truncating capability I find is when I open the file for output. -- Bob Fisher US Defense Logistics Agency Systems Automation Center DSAC-TOL, Box 1605, Columbus, OH 43216-5002 614-238-9071 (AV 850-9071) bfisher@dsac.dla.mil osu-cis!dsacg1!bfisher