question: public String parseFile ( File file ) { log . config ( file . getAbsolutePath ( ) ) ; String line = null ; try { BufferedReader in = new BufferedReader ( new InputStreamReader ( new FileInputStream ( file ) , Ini . getCharset ( ) ) , 10240 ) ; String errMsg = "" ; int lineNo = 1 ; while ( ( line = in . readLine ( ) ) != null && errMsg . length ( ) == 0 ) { errMsg = parseLine ( line , lineNo ) ; lineNo ++ ; } line = null ; in . close ( ) ; if ( errMsg . length ( ) != 0 ) return errMsg ; } catch ( Exception ioe ) { String s = ioe . getLocalizedMessage ( ) ; if ( s == null || s . length ( ) == 0 ) s = ioe . toString ( ) ; return "Parse Error: Line=" + line + " - " + s ; } return "" ; }
target:  Read and Parse File