Opening the file with Kotlin/JVM is pretty easy because Java provides APIs to perform CRUD operations on a file. These APIs are not available because Kotlin Native is Kotlin without a VM. Hence, there are only the APIs provided by the standard library, which unfortunately doesn't provide APIs to play with a file.
This is where we are going to leverage Kotlin Native's feature to enable interoperability with the C code, and use its API to open the CSV file using the fopen function.
The fopen function opens the file whose name has been passed in the first parameter ...