output to file

Today add the output operation to file.