Replies: 1 comment 15 replies
-
对于运行时的文件的扩展名有白名单机制。txt不是白名单上的扩展名,换个在白名单上的扩展名,例如abc.ant,就行了。 |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
比如在ant.resources下面存在一个文件叫 abc.txt,那么我在其他地方应该如何加载这个文件呢?
我尝试使用:
io.open("/pkg/ant.resources/abc.txt")
然后程序报错说:
/pkg/ant.resources/abc.txt: No such file or directory
我也尝试用assetmgr,最终也没整明白 = =
Beta Was this translation helpful? Give feedback.
All reactions