读取文件的代码
boolean lockForRead = false;
String filename = "/gs/smsspamfilteraptosin/Data";
AppEngineFile readableFile = new AppEngineFile(filename);
FileReadChannel readChannel = fileService.openReadChannel(readableFile, lockForRead);
BufferedReader reader = new BufferedReader(Channels.newReader(readChannel, "UTF")); => I think something went wrong here.I put a string test and after this line the string test was null.
String line = reader.readLine();
云存储中的路径
smsspamfilteraptosin/Data
应用程序的 ACL 权限
FULL_CONTROL
当我尝试打印行时,结果为空。
这就是我在管理日志中看到的内容:此应用程序不允许 API 服务
有人能告诉我我做错了什么吗?
谢谢你。