public String createFile(String json){
String fileName = System.currentTimeMillis()+".json";
File file = null;
Writer out = null;
String tmpPath = "D:\\file";
try{
file = new File(tmpPath);
if(!file.exists()){
file.mkdirs();
}
file = new File(tmpPath+"/"+fileName);
out = new FileWriter(file, true);
out.write(json);
out.close();
}catch(IOException e){
}finnally{
if(file.exists()){
file.delete();
}
}
}