以下代码在ios和win都可以正常读取到文件,为何到了安卓下就不能读取了呢。。
url = url or “1”
CCFileUtils:sharedFileUtils():addSearchPath(“res/”)
local path = CCFileUtils:sharedFileUtils():fullPathForFilename(url…".dat")
if io.exists(path) then
local content
local file = io.open(path, "rb")
if file then
content = file:read("*a")
io.close(file)
end
quick版本是2.2.5