How to append columns to text file