write file to location
线程处理