Make possible to redirect stdout to a file.