output a file