fileout.java

来自「Java 语言实现的计算器」· Java 代码 · 共 30 行

JAVA
30
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package fileout;import java.io.*;/** * * @author Yuyin Li */public class Fileout {    /**     * @param args the command line arguments     */    public static void main(String[] args) throws IOException {        String text = "D:\\Java123.txt";        String a;        BufferedReader fout = new BufferedReader (new FileReader(text));        while((a=fout.readLine())!=null&&a.length()!=0)        {            System.out.println(a);        }        fout.close();    }}

⌨️ 快捷键说明

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