www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/10/15:26:28

From: Ian Miller <itmiller AT dra DOT hmg DOT gb>
Newsgroups: comp.os.msdos.djgpp
Subject: I'd like to truncate a file but I don't know how
Date: 10 Feb 1997 14:02:19 +0000
Organization: Defence Research Agency
Lines: 14
Message-ID: <rkg1z4ahec.fsf@taz.dra.hmg.gb>
NNTP-Posting-Host: 146.80.115.106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'd like to say "truncate this file here" in one of my programs.

Can I/how do I do this with standard C/C++?
Can I/how do I do this with non-standard features of DJGPP C/C++?

At the moment, if I delete a word from a file (a dictionary file
as it happens) and shift everything down to reclaim the space,
I'm left with a load of spare space at the end that I can't get
rid of.

TIA,
-- 
Ian Miller, Dorset, UK
DJGPP 2.01, Win95 DOS box (LFN undefined, FNCASE=y)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019