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

📄 filecopy.java

📁 可根据字典文件快速进行单词校对
💻 JAVA
字号:
package yy;
import java.io.*;
public class FileCopy{//文件复制类
	public void FileCopy(String str,String file){//主函数
		try{
			copy(str,file);//调用复制方法
		}
		catch(IOException e){;}//异常处理
	}
	public static void copy(String from_str,String to_name)throws IOException{//文件复制方法
		File to_file=new File(to_name);//创建输出文件类对象
		FileWriter out=new FileWriter(to_file);
			int i;
			try{out.write(from_str);
			}
			finally{
				try{
					out.close();//关闭输出文件
				}
				catch(IOException e){;
				}		
			}
		} 
      
}

⌨️ 快捷键说明

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