用kotlin写的话可能路径不对,要重新获得路径
亲测用以下方法可以获得路径 var fileDir=this.getFilesDir().getPath();
val file = File(fileDir+"/info.text")
剩下的就差不多了