local path = daisy.getUserFolderPath("") local file = WriteFile(path .. filename) file:writeInt(fileVersion) file:writeString(playerName) -- ... and so on ... file:close()