Make posible to redirect stdout to a file.