Re: [NEWBIE] Wipeing

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 03/27/01


Its Me Christian wrote:
>
> How would i go about clearing a whole file. Eg. wimping every thing off a
> file.

remove("filename");

> or is there a way that i can just clear one line of a file.

Nope, the best way to do it is to open the file for reading and open a
temporary line of another file and copy each line over one at a time
_except_ the lines that you want to get rid of.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST