Do some writing to file.