摘要: import java.io.*;
public class Demo {
public static void main(String[] args) {
File dirFile;
File tempFile;
boolean bFile;
String sFileName;
bFile = false;
try {
dirFile = new File("E:\\test");
bFile = dirFile.exists();
if (bFile == true) {
System.out.println("The folder exists.");
} else {
System.out
.println("The folder do not exist,now trying to create a one...");
bFi
阅读全文