What is the best way to load test data from some f...
# kotlin-native
t
What is the best way to load test data from some file for native test? In JVM I would just put it into
res
folder and then use
Classloader#getResourcesAsStream()
, but it is not available in native target.
o
one option is https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/immutable-blob-of.html, another one is load from file using posix APIs