使用字节缓冲流读取数据到程序 BufferedInputStream in = new BufferedInputStream(new FileInputStream("abc.txt"));
使用起来和一般的字节输入流基本没有差别。
使用字节缓冲流写出数据到文件 BufferedOutputStream out = new BufferedOutputS...
java.io.File类可以表示文件或者文件夹。构造方法: public File(String path):参数代表文件或文件夹的路径。
public File(String parent, String child):第一个参数代表父文件夹(字符串),第二个参数代表子文件夹或文件。
public File(File parent, String child):第一个...