总结:虽然他没教给我们很多,但是他已经很棒了

package com.a.b;

import java.io.*;

public class dd {
	public static void main(String[] args) throws IOException {
		File f = new File("C:\\ttee");
		if (!f.exists()) {
			f.mkdir();
		}

		File f2 = new File(f, "yue.txt");
		f2.createNewFile();// 这里因为有f1传了个参数,所以在目录下创建了一个文本文档
	}
}

  

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2023-03-14
  • 2021-12-23
  • 2021-08-08
  • 2021-11-16
相关资源
相似解决方案