"<BODY>
<SYNC Start=2193>
The One With The Cat
<SYNC Start=6155>
Wow! That ripped!".replaceAll("<.*>","");全部搞定,关键是replaceAll用了Pattern
<SYNC Start=2193>
The One With The Cat
<SYNC Start=6155>
Wow! That ripped!".replaceAll("<.*>","");全部搞定,关键是replaceAll用了Pattern
解决方案 »
- extjs提交表单数据的问题
- dwr同步 页面偶尔会卡死 求解
- solr1.4 高亮显示的问题
- csdn里面咋见不到搞portal的呢?
- 怎么才能取出Map中全部的父节点和子节点信息?
- Apache与Tomcat集成,运行DWR reverse-ajax的疑问
- 今天有些无聊散分,5点半下班结贴
- oracle启动
- 正则表达式
- 各位大哥帮帮我吧?请问JMS用到的包放在哪个文件夹下,用tomcat可以作为服务器嘛?我的分数不够,下次再给
- JBuilder的struts问题,我怎么不能利用Jsp From ActionForm产生Jsp?
- 请各位推荐几个计算机专业技术文章投稿的刊物或者网站,立即给分哈!!!
<SYNC Start=2193>
The One With The Cat
<SYNC Start=6155>
Wow! That ripped!".replaceAll("<.*>","");
package ReadFileP01; //zThis is package nameimport java.util.*;
import java.io.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/public class ReadFileC01 {
// This is construction function(gou zao han shu)
public ReadFileC01() {
} public static void main(String args[]){
ReadFileC01 test = new ReadFileC01();
String strfile = ".\\data\\from.txt";
Vector vctValue = new Vector() ;
vctValue = test.ReadFile(strfile) ;
System.out.println("In File" + strfile + " : " ) ;
for (int i=0; i<vctValue.size() ; i++){
System.out.println( vctValue.get(i) ) ;
} } private Vector ReadFile(String strInFile) {
Vector vctInFile = new Vector() ;
String strLine = "" ; //Every line in file
int intLoop ; //File line try {
BufferedReader bfrdInFile = new BufferedReader(new FileReader(strInFile));
strLine = bfrdInFile.readLine();
intLoop = 0 ; while (strLine != null) {
if ( !strLine.equals("")) {
vctInFile.add( intLoop, strLine ) ;
intLoop++ ;
} strLine = bfrdInFile.readLine(); }
bfrdInFile.close(); //close file
} catch (Exception e) {
e.printStackTrace() ;
}
return vctInFile;
}}