I have a big array with numbers I would like to write to a file.
But if I do this:
local out = io.open("file.bin", "wb")
local i = 4324234
out:write(i)
I am just writing the number as a string to the file. How do I write the correct bytes for the number to file. And how can I later read from it.