You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val loader = script.path.parent.resolve("my-config.conf").toConfigurationLoader()
val rootNode = loader.load()
val node1 = rootNode.getNode("test-node")
val value = node1.string
rootNode.getNode("save-test").setValue("TestValue123")
loader.save(rootNode)
Or the simpler version which is more suited for read-only configs and might not be as quick for multiple reads:
Read:
val rootNode = script.path.parent.resolve("my-config.conf").loadConfig()
val node1 = rootNode.getNode("test-node")
val value = node1.string