首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 1。文件和目录管理,对java.io.file类编程,采用煤炭。

1。文件和目录管理,对java.io.file类编程,采用煤炭。

  • 资源大小:19.34 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Java Develop java

资 源 简 介

1.文件和目录管理,使用java.io.File类编程,完成如下功能: (1)输入文件名称 (2)判断该文件名称是否存在 (3)若文件存在,判断是文件还是目录 (4)若是文件则输出文件的各种属性 (5)若是目录则输出其中包含的所有文件的名称 2.二进制文件的读写操作,用InputStream和OutputStream及其子类,设计并实现一个可以完成文件复制操作的程序。 3.文本文件的读写操作,编写一个文本文件分析程序,读入一个英文文本文件,统计其中单词、数字、标点符号等元素出现的次数,并记录单词总数。提示:对文件的分析可以使用StreamTokenizer类。 4.异常处理程序的编写,在上述三个程序中应用异常处理方法增加程序的错误处理能力。-1. File and directory management, the use of java.io.File class programming to complete the following functions : (a) input file name (2) to determine that the names of the existence of documents (3) If the file exists, or judgment is that the paper catalog (4) If the paper is output files the various attributes (5) If the directories containing the output of all documents name two. Binary file reading or writing, using InputStream and OutputStream and its sub-class design and realization of a complete copy of the operating procedures. 3. The text files and write, to prepare a text file analysis program, read an English text files, statistics words, numbers, punctuat

文 件 列 表

fio
file
MainFrame.java
FileOpener.java
FileCopier.java
FileAnalyser.java
FileNameEmptyException.java
IsDirectoryException.java
NoSuchFileException.java
NotTextFileException.java
VIP VIP
0.170150s