Article View: es.comp.os.linux.programacion
Article #9863como vaciar un archivo
From: laredo
Date: Tue, 30 Apr 2002 20:04
Date: Tue, 30 Apr 2002 20:04
9 lines
1314 bytes
1314 bytes
Hola, tengo un programa en c++ bajo linux, en el que realizo una serie de procesamientos, y para seguir el programa, escribo en un archivo de log todas las funciones por las que pasa el programa. El programa esta ejecutando continuamente, y el archivo de log, se hace muy grande, como puedo vaciar un archivo desde c++. Para escribir utilizo las funciones fstream, para mi es mas comodo que la fopen. Salud Cesar
Technical Details
Message-ID:
<aamtcv$c0ckc$1@ID-41415.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!fu-berlin.de!uni-berlin.de!80-26-16-117.uc.nombres.ttd.ES!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit X-Google-Thread: f86c8,1703f04c289edcfd,start X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-04-30 13:05:00 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!fu-berlin.de!uni-berlin.de!80-26-16-117.uc.nombres.ttd.ES!not-for-mail From: "laredo" <cesar_bravo@eresmas.com> Newsgroups: es.comp.os.linux.programacion Subject: como vaciar un archivo Date: Tue, 30 Apr 2002 22:04:53 +0200 Lines: 11 Message-ID: <aamtcv$c0ckc$1@ID-41415.news.dfncis.de> NNTP-Posting-Host: 80-26-16-117.uc.nombres.ttd.es (80.26.16.117) X-Trace: fu-berlin.de 1020197087 12595852 80.26.16.117 (16 [41415]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000