public Toml read(File file) {
    try {
      return read(new InputStreamReader(new FileInputStream(file), "UTF8"));
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
public Toml read ( File file ) { try { return read ( new InputStreamReader ( new FileInputStream ( file ) , "UTF8" ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Populates the current Toml instance with values from file.

@param file The File to be read. Expected to be encoded as UTF-8.
@return this instance
@throws IllegalStateException If file contains invalid TOML