Writing file.
Defining reader.