my `FileChannel` appears to write a bigger file th...
# getting-started
e
my
FileChannel
appears to write a bigger file than needed
Copy code
FileChannel.open(path, StandardOpenOption.CREATE, StandardOpenOption.WRITE).use {
            data.ptr = 0
            while (data.hasRemaining())
                println(it.write(data))
        }