⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filestreamstest.java

📁 通过JAVA
💻 JAVA
字号:
import java.io.*;
class FileStreamsTest
{
public static void main(String args[])
{
try{
FileInputStream fis=new FileInputStream("einput.txt");
FileOutputStream fos=new FileOutputStream("eoutput.txt");
int c;
while((c=fis.read())!=-1)
{fos.write(c);
}
fis.close();
fos.close();
}
catch(FileNotFoundException e)
{System.err.println("FileStreamsTest:"+e);}
catch(IOException e)
{System.err.println("FileStreamsTest:"+e);}
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -