public static List parseValues(String fileName) throws CLIException {
  BufferedReader in=null;
  List values=new ArrayList();
  try {
    in=new BufferedReader(new FileReader(fileName));
    String line=in.readLine();
    while (line != null) {
      line=line.trim();
      if (line.length() > 0) {
        values.add(line);
      }
      line=in.readLine();
    }
  }
 catch (  IOException e) {
    throw new CLIException(e,ExitCodes.IO_EXCEPTION);
  }
 finally {
    if (in != null) {
      try {
        in.close();
      }
 catch (      IOException e) {
      }
    }
  }
  return values;
}

public static List parseValues ( String fileName ) throws CLIException { BufferedReader in = null ; List values = new ArrayList ( ) ; try { in = new BufferedReader ( new FileReader ( fileName ) ) ; String line = in . readLine ( ) ; while ( line != null ) { line = line . trim ( ) ; if ( line . length ( ) > 0 ) { values . add ( line ) ; } line = in . readLine ( ) ; } } catch ( IOException e ) { throw new CLIException ( e , ExitCodes . IO_EXCEPTION ) ; } finally { if ( in != null ) { try { in . close ( ) ; } catch ( IOException e ) { } } } return values ; }
returns a set of values .
