I am new to Kotlin. Can someone please tell me how to open a file on click of a button? Is there some command like:
Button.setOnAction {
File.Open(*//specified file path*)
}
I am using Kotlin for Java development and not for andriod. I have a .fxml file where I have defined this button and I need to define the above feature in a kotlin (.kt) file. Thank you.