我用Gdx.files.local获取的FileHandle.exist返回false,意思是我要自己在local新建一个文件?
那么应该怎么新建??
求大神指教
没有大神会libgdx么
先看一下官方的注释:
/** Path relative to the private files directory on Android and to the application's root directory on the desktop. */
Local
Gdx.files.local如果文件存在那么返回FileHanle,如果文件不存在,那么创建文件同时返回FileHandle