A way to read and write from file

thanks for your quick response! :)