Print to a file directly