File file=new File(parameters);
文件操作
文件输入输出操作
FileOutputStream 字节流输出 内存->文件(类似于显示器)
主要是:参数(文件或者绝对路径,是否追加)、异常(FileNotFoundException,IOException)
FileInputStream 字节流输出 文件->内
FileWriter 字符流 写入
FileReader 字符流读入
BufferedWriter字符流封装写入
BufferedWriter字符流封装读取
转换流 把二进制文件从字节流变成字符流
InputStream ->InputStream ->BufferedReader
控制台输入输出
System.out->OutPutStream->PrintStream
System.in->InPutStream->PrintWriter
static PrintWriter pw = new PrintWriter(System.out);
static Scanner sc = new Scanner(System.in);
序列化和反序列化
序列化类似于一种加密解密
NIO
Buffer缓冲区的使用
Buffer和Channel的使用
文件拷贝