这个小栗子用到的知识点:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
str=br.readLine();
//BufferReader创建一个控制台输入的监控对象
//对象不断的读字符
System.getProperty("user.dir");
//获取当前的路径
File[] files = dir.listFiles();
//获取dire下所有的文件夹或者文件
FileInputStream in = new FileInputStream(f);//创建文件的读入对象
temp=in.read();//read()方法进行读
//实现代码
public class Dom {
static String str;//定义保存读到的字符串
static String filename;
static String dirnow;//当前目录
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));//获取控制台输入对象
System.out.println