Re: remove comment lines from .txt file
- From: houghi <houghi@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 9 Dec 2008 20:13:57 +0100
Michael wrote:
Hi all,
I wonder what is the best way to remove comments from txt file. I have
pretty big (about 100mb) .txt file with some comment lines at
beginning and want to clean it up. My first idea was to read file with
fget and if line does not begin with # write to new file, then rename.
Is it possible to do that without reading hole file?
If it is only one file, why not do it by hand?
houghi
--
This was written under the influence of the following:
| Artist : Jimi Hendrix
| Song : Voodoo Child (Slight Return)
| Album : Band Of Gypsys_ Live At The Fillmore East
.
- References:
- remove comment lines from .txt file
- From: Michael
- remove comment lines from .txt file
- Prev by Date: How to use global class parameter for session information
- Next by Date: Re: How to use global class parameter for session information
- Previous by thread: Re: remove comment lines from .txt file
- Next by thread: Re: remove comment lines from .txt file
- Index(es):
Relevant Pages
|