I want to open files that are located beside the main script file.
@file:Import("Models.kts")
val data = Gson().fromJson(FileReader("data.json"), Models.Data::class.java)
fails with
java.io.FileNotFoundException: data.json (No such file or directory)
Using the absolute path works straight away. Cannot find anything guidance in the documentation.
I want to open files that are located beside the main script file.
fails with
Using the absolute path works straight away. Cannot find anything guidance in the documentation.