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

📄 copyfile.java

📁 实例精华
💻 JAVA
字号:
package STREAM;
import java.io.*;
public class COPYFile {
    public static void main(String[] args) throws IOException{
        COPYFile copyfile = new COPYFile();

        FileInputStream fis = new FileInputStream("e:/hhll.txt");
        FileOutputStream fos = new FileOutputStream("e:/helin.txt");

        byte[] b = new byte[1024];
        int i = 0;

        while((i = fis.read(b)) != -1)
        {

            fos.write(b,0,i);
        }

        fis.close();
        fos.close();


    }
}

⌨️ 快捷键说明

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