Read and write functions are provided by the class IO_matrix_file. It is possible to read or write data at every iteration of the simulation using an instance of this class.