A way to read and write from file