Can you show the code for how you are writing to a file and reading them.