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

📄 fileprocess.java

📁 200多个自己编的java程序,大家可以学一下.
💻 JAVA
字号:
/* * fileProcess.java * * Created on 2004年9月18日, 上午9:43 *//** * * @author  litertiger */import java.io.*;public class fileProcess {        public fileProcess() {        try{    DataInputStream dis=new DataInputStream(new FileInputStream("f:\\records.txt"));    }    catch(IOException e)    {       System.out.checkError(e); /** Creates a new instance of fileProcess */    }        for(;;)        {            //设置记录由 int long double 组成            int fld1;            long fld2;            double fld3;            try{                fld1=dis.readInt();                fld2=dis.readLong();                fld3=dis.readDouble();                System.out.println(fld1+"  "+fld2+"  "+fld3);            }            catch(EOFException e)            {                break;            }                                    }    }}

⌨️ 快捷键说明

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