code: public int loadFromFile(final String path) throws IOException {
          InputStream in = null;
          try {
              in = getClass().getResourceAsStream(path);
              if (in != null)
                  return loadSmiles(in);
              File file = new File(path);
              if (file.exists() && file.canRead())
                  return loadSmiles(new FileInputStream(file));
          } finally {
              if (in != null)
                  in.close();
          }
          return 0;
      }
docs: Load a set of abbreviations from a classpath resource or file in SMILES format. The title is seperated
  by a space.
  
  <pre>
  *c1ccccc1 Ph
  *c1ccccc1 OAc
  </pre>
  <p>
  Available:
  <dl>
  <dt>obabel_superatoms.smi</dt>
  <dd><a href="https://www.github.com/openbabel/superatoms"><code>https://www.github.com/openbabel/superatoms</code></a></dd>
  </dl>
  
  @param path classpath or filesystem path to a SMILES file
  @return the number of loaded abbreviation
  @throws IOException