The Andoird messages.log file is not being created.
I've created the "visionaire" folder on my device in the root of the sdcard folder, but it doesn't create the messages.log file.
I also don't think the writing to files is not working on Adnroid, but hard to confirm without the log file.
function write_highscores()
local newFilename = iFilename
local newFile = io.open(newFilename, "w")
for i, score in ipairs(tHighscore) do
local wVariable = ""
local wScore = ""
local wName = ""
wVariable = score.variable
if score.value ~= nil then
wScore = "" .. score.value
end
wName = score.name
if string.len(wName) > 0 then
wScore = wScore .. "|" .. wName
end
print(wVariable .. " = " .. wScore)
newFile:write(crypt(wVariable .. " = " .. wScore) .. "\n")
end
-- * close the file! * --
newFile:close()
print("--- new settings have successfully been saved to " .. iFilename)
end