read and write functionality to a txt file stored on the phone