20package denoptim.molecularmodeling;
22import java.io.BufferedReader;
23import java.io.FileReader;
24import java.io.IOException;
25import java.util.ArrayList;
27import denoptim.exception.DENOPTIMException;
51 BufferedReader br =
null;
56 br =
new BufferedReader(
new FileReader(filename));
57 while ((line = br.readLine()) !=
null)
63 catch (IOException nfe)
76 catch (IOException ioe)
84 String msg =
"No data found in file: " + filename;
103 BufferedReader br =
null;
109 br =
new BufferedReader(
new FileReader(filename));
111 while ((line = br.readLine()) !=
null)
113 if (line.startsWith(keyword))
120 catch (IOException ioe)
133 catch (IOException ioe)
Utilities for molecular models builder.
static int countLinesWKeywordInFile(String filename, String keyword)
Count the number of lines starting with a keyword.
static void readKeyFileParams(String filename, ArrayList< String > data)
Read the parameter settings to be used by PSSROT.