adding new writelines vs writefile