Fele类

File类,输入/输出(1)

.createNewFile()创建文件,不创建目录
.exeists()判断文件或目录是否存在
.idFile()判断是否是文件
.isDirectory()判断是否是目录s’
.mkdir()创建目录
.getPath()路径
.getAbsolutePath()绝对路径

输入流
InputStream和Reader作为基类

输出流
OutputStream和Writer作为基类

字节流:
字节输入流:InputStream基类
字节输出流:OutputStream基类
字符流:
字符输入流:Reader基类
字符输出流:Writer基类

8位通用字节流,16位Unicode字符流

用FileInputStream和FileOutputStream读写文本文件File类,输入/输出(1)

File类,输入/输出(1)
用BuffereReader和BufferedWriter读写文本文件

相关文章:

  • 2021-09-08
  • 2021-04-06
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-11-19
  • 2021-08-01
猜你喜欢
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案