第九讲 文件操作
2020-06-12 本文已影响0人
w_yong
File
InputStream f = new FileInputStream("C:/java/hello");
File f = new File("C:/java/hello");
InputStream out = new FileInputStream(f);
OutputStream f = new FileOutputStream("C:/java/hello")
File f = new File("C:/java/hello");
OutputStream f = new FileOutputStream(f);
输入和输出流是相对于内存来说的:
写入内存叫做输入流,从内存写到文件叫输出流。