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.
10000011111101110001010or34333234323334?Cfunctions to turn numbers into the appropriate strings.