In my build I have a text file containing some data that is needed by my program. It’s a multiplatform project and for the JVM and Native targets I simply load the content of the file using
FileInputStream and the Unix read/write system calls respectively.
Is there a simple way to do this? Perhaps Gradle already has the necessary functionality? If not, is there some way to achieve this?