Results 1 to 3 of 3
Thread: removing lines from a txt file
Sep 24, 2013, 05:53 #1
- Join Date
- Feb 2004
- 0 Post(s)
- 0 Thread(s)
removing lines from a txt file
I have a data.txt file containing data like this
house # john
car # smith
boat # john
I need to remove from file data.txt , all rows having "# john" . I can load the file in array because it's a very big file and I receive a memory error.
Is there any way to remove all rows having "# john" in the file , without loading the file in array ?
Graziano█ trcris ::> http://www.trcris.com