生成临时文件
//package com.nowjava;// 来 自 N o w J a v a . c o m import java.io.File; import java.io.IOException; public class Main { public static File generateTempFile(String prefix, String suffix) { File result = null; try { result = File.createTempFile(prefix, suffix); } catch (IOException e) { e.printStackTrace(); } if (result == null) { int rand = (int) (Math.random() * 0xFFFFFFFF); result = new File(prefix +