Reading and writing to text file works now