用java怎么读取数据库中数据,并生成XML文件
展开全部
用流读出来,
File sdCardDir = Environment.getExternalStorageDirectory();
File saveFile = new File(sdCardDir, path + "/" + aFileName);
FileOutputStream outStream = new FileOutputStream(saveFile,aIsApp);
BufferedReader reader = null;
reader = new BufferedReader(new FileReader(objFile));我这是sd卡上读txt文档的代码,你看看
File sdCardDir = Environment.getExternalStorageDirectory();
File saveFile = new File(sdCardDir, path + "/" + aFileName);
FileOutputStream outStream = new FileOutputStream(saveFile,aIsApp);
BufferedReader reader = null;
reader = new BufferedReader(new FileReader(objFile));我这是sd卡上读txt文档的代码,你看看
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询