parse txt file to remove 1 line based on #id....?
Posted: Thu Mar 13, 2008 7:59 pm
Hi,
I hope someone can help me with this. Im stuck.
I have a text file in the following format
How could I go about writing a function that would accept an id value and use this to remove the information for that id.
ie. parseFile(3) would change the text file to
Thank you very much for your help!
Lambono
I hope someone can help me with this. Im stuck.
I have a text file in the following format
Code: Select all
#1
some information on a single line for id 1
#2
some information on a single line for id 2
#3
some information on a single line for id 3
#4
some information on a single line for id 4
etc.
ie. parseFile(3) would change the text file to
Code: Select all
#1
some information on a single line for id 1
#2
some information on a single line for id 2
#4
some information on a single line for id 4
Lambono