Add lines to top and end of the end of file