首页 > 代码库 > 王立平--往sdcard中以流的形式存储数据

王立平--往sdcard中以流的形式存储数据

publicvoid saveSDCard(String filename, String filecontent)throws Exception {
File file
=new File(Environment.getExternalStorageDirectory(),filename);
FileOutputStream outStream
=new FileOutputStream(file);
outStream.write(filecontent.getBytes());
outStream.flush();
outStream.close();
}

王立平--往sdcard中以流的形式存储数据