some other ways to use File.open
modified file with some additional lines
...