U
uncutstone
I want to find a easy way to delete a line of a text file . something
like
File.foreach(filename){ |line|
# remove this line if match some condition
# do other thing
}
but since file is not randomly accessible, it seems no easy way to do
this.
somebody has some advice. Thanks in advance.
like
File.foreach(filename){ |line|
# remove this line if match some condition
# do other thing
}
but since file is not randomly accessible, it seems no easy way to do
this.
somebody has some advice. Thanks in advance.