Is there any Java like version of File() in native...
# kotlin-native
d
Is there any Java like version of File() in native ? Cause I made my own but can't read /etc or /var but I can read file in home folder
s
Not yet
d
Anyways got fixed all outside home you read only. Or I might execute it with su permission
@serebit Thanks for replying
s
No problem 🙂
d
Well when I read /sys/class it's throw non-zero 139
@serebit something its says segmentation fault
I'm using mmap(null, length.convert(), PROT_READ,MAP_SHARED, path,0)
When I try COpaquePointer to readbytes() it's throw error
One conclusion mmap gives 0x-1 while reading any file inside sys/power but fread() can
e
Could you be looking for kotlinx-io? https://github.com/Kotlin/kotlinx-io
Oh wait, I could be wrong. Might just be for streams.