ファイルの読み込む(java)
①ファイルから、データを読み込む、固定バイト数を取得する。RandomAccessFile rdFile = null;rdFile = new RandomAccessFile(file, "r");byte[] lines = new byte[100];int i = 0;while (rdFile.read(lines) != -1) {String number1 = trimSpace(new String(lines, 0, 12));String number2 = trimSpace(ne
原创
2010-12-10 10:51:00 ·
715 阅读 ·
0 评论