File
![](https://img.haomeiwen.com/i4769868/5864da8bc4e9effd.png)
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);
输入和输出流是相对于内存来说的:
写入内存叫做输入流,从内存写到文件叫输出流。
网友评论