!!!急!请问该如何读文件!!! 流文件的readline流读方法结束有标识号-1。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 假设你的文件名为a.dat,用下面的程序可输出手机号,一行一个:try{ BufferedReader in=new BufferedReader(new FileReader("a.dat")); String line; while(true){ line=in.readLine(); if(line!=null){ String[] b=a.split("\t"); System.out.println(b[1]); } else break; } }catch(Exception e){ System.out.println(e); return; } 字符串str="ABCDEFGHIJK",要求输出最少一个最多八个的所有组合(不排序,连续字母)。 求助关于传值的问题 关于java多线程中变量的传递 关于JIT的疑问 Structs中ActonForm设置的具体方式?? 关于LIST 和 JTable jsp 中 input使用右对齐后,光标消失了。 大蝦幫忙 关于jar:Manifest entry如何加到JarFile里去? 怎么解决对DB操作时,出现“无效的描述符索引”?? 求助:在哪里能下载到javax.management包。急!急! 关于字符集的问题,究竟什么是“ISO 8859-1”,还有其它字符集吗?有什么区别?
BufferedReader in=new BufferedReader(new FileReader("a.dat"));
String line;
while(true){
line=in.readLine();
if(line!=null){
String[] b=a.split("\t");
System.out.println(b[1]);
} else break;
}
}catch(Exception e){
System.out.println(e);
return;
}