First version of read/write of files