naive file output code

output the file with specific filename