Output to file with timestamped filename