android,create text file in sdcard

File record=new File(LogFile);
if(record.exists()){
record.delete();
}

FileWriter writer = new FileWriter(LogFile, append);

writer.write("<page>\r\n");

writer.close();

posted @ 2012-05-21 17:05  Qiengo  阅读(302)  评论(0编辑  收藏  举报