60823818b868001c1482f72ce91dac13
来自「这是我自己照着书上敲的」· 代码 · 共 41 行
TXT
41 行
/*
* Created on 2007-9-22
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
import java.io.*;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class FileCopy
{
public static void main(String args[])
{
try
{
FileInputStream fin=new FileInputStream("in_file");
FileOutputStream fout=new FileOutputStream("out_file");
int c;
while((c=fin.read())!=-1)
{
fout.write(c);
}
fin.close();
fout.close();
}
catch(FileNotFoundException e)
{
System.out.println("File not found:"+e);
}
catch(IOException e)
{
System.out.prinln("IO Exception:"+e);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?