4_输入_输出处理.pptVIP

  • 4
  • 0
  • 约2.56万字
  • 约 75页
  • 2017-11-17 发布于河南
  • 举报
4_输入_输出处理

4、文件操作/随机访问文件 ——文件操作:File1 File(String pathname) File f=new File(“c:\data\temp.dat”); File f=new File(“data\temp.dat”); File f=new File(“temp.dat”); File(String parent, String child) File f=new File(“c:\data” ,“temp.dat”); File f=new File(“data ” ,“ temp.dat”); File(File parent, String child) File f=new File(new File(“c:\data”) ,“temp.dat”); File f=new File(new File(“data ”) ,“ temp.dat”); 4、文件操作/随机访问文件 ——文件操作:File2 boolean canRead() boolean canWrite() boolean setReadOnly() boolean exists() boolean isDirectory() boolean isFile() boolean isHidden() long lastModified() boolean setLas

文档评论(0)

1亿VIP精品文档

相关文档