ConfigurationItem.fromFile(String name)

Opens a file and reads its string contents into this instance's properties.

If name is a relative path, it will be interpreted relative to the current working directory. If name is an absolute path, it will ignore the current working directory.

Source

ConfigurationItem.fromFile(String name) : this.fromString(new File(name).readAsStringSync());