How to write data to file in Kotlin
A little while ago, i started learning Kotlin, and i have done it's basics, variables, classes, lists and arrays etc. but the book i was learning from seemed to miss one important aspect, reading and writing to a file, maybe a function like "fwrite" in C++
So i searched google, and yes, reading and writing bytes was easy enough. However, me being used to C++'s open personality, wanted to make a "kind of" database.
In C++ i would simply make a struct and keep appending it to a file, and then...