输入输出流--带仓库系统作业.pptxVIP

  • 2
  • 0
  • 约1.05万字
  • 约 45页
  • 2023-06-17 发布于江苏
  • 举报
输入输出流;1.概述;2.文件(File 类);2.1. 创立文件对象;2.2 查询文件属性;2.3 查询文件属性;3. FileInputStream;3.1 使用 FileInputStream读取文件;3.2 处理 I/O 异常;3.3 从 FileInputStream中读出;3.4 关闭 FileInputStream; int b; byte buffer[]=new byte[2500]; try { File f=new File(E:\\lanhong\\, a.txt); FileInputStream readfile=new FileInputStream (f); b=readfile.read(buffer,0,2500); try { String str=new String(buffer,0,b,Default);

文档评论(0)

1亿VIP精品文档

相关文档