Is it possible to parse a file line by line, and edit a line in-place while going through the lines?

Edit
Report