当前位置: 技术问答>java相关
请问文件流有没有按行读取的方法
来源: 互联网 发布时间:2015-10-30
本文导语: 请给出原型 | import java.io.*; class Example20_10 { public static void main(String args[]) { try{ RandomAccessFile file=new RandomAccessFile("Example20_10.java","rw"); long filePoint=0; long fileLength=file.length(); ...
请给出原型
|
import java.io.*;
class Example20_10
{ public static void main(String args[])
{ try{
RandomAccessFile file=new RandomAccessFile("Example20_10.java","rw");
long filePoint=0;
long fileLength=file.length();
while(filePoint
class Example20_10
{ public static void main(String args[])
{ try{
RandomAccessFile file=new RandomAccessFile("Example20_10.java","rw");
long filePoint=0;
long fileLength=file.length();
while(filePoint