Output file via router