/ * * Create Date 2004-12-14 * * Todo To change this generated file template, go to * Window - Preference - Java - Code Style - Code Template * / package net.selfcafe;
Import java.io. *; / ** * @Author administrator * * Todo To change this generated type annotation template, go to * Window - Preference - Java - Code - Code Template * / Public Class UpdateFile {/ / Traversing the entire file plus public static void search; string subpath = ""; file newfile = new file (path);
IF (newfile.isdirectory ()) {
//System.out.println (newfile.getname ()); string filelist [] = newfile.list (); size = filelist.length; for (int i = 0; i } / * * Get the contents of file * * / public static String getStrFromFile (String strFileNameAndPath) {BufferedReader br = null; StringBuffer s = new StringBuffer (); String line = ""; int iLineCount = 0; int iSum = 0; Try {br = new bufferedReader (new fileRead (StrfileNameAndPath); ilinecount = 0; while ((line = br.readline ())! = null) {// Process page If, if you include a frame, you can remove iLineCount ; string; String Strresult; // Temporary string // boolean ichangeflag = false; // guarantees Strresult = "