How to convert result file to physical file?