We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99a050 commit 0ee985eCopy full SHA for 0ee985e
src/main/java/denoptim/io/IteratingAtomContainerReader.java
@@ -76,8 +76,10 @@ public IteratingAtomContainerReader(File input)
76
FormatFactory factory = new FormatFactory();
77
factory.registerFormat(new SMILESListFormat());
78
79
- IChemFormat chemFormat = factory.guessFormat(
80
- new BufferedReader(new FileReader(input)));
+ BufferedReader headReader = new BufferedReader(new FileReader(input));
+ IChemFormat chemFormat = factory.guessFormat(headReader);
81
+ headReader.close();
82
+
83
if (chemFormat instanceof MDLV2000Format
84
|| chemFormat instanceof MDLV3000Format)
85
{
0 commit comments