Append new lines to text file