simple file reader/writer

Small nit: could you surround this statement with braces to fit in line with the rest of the code base?