private OutputStreamWriter os2; private void outputFile2(){ File sdDire = Environment.getExternalStorageDirectory(); try { os2 = new OutputStreamWriter(new FileOutputStream(sdDire.getCanonicalPath() +
strings[0]),"Unicode"); os2.write("纯属总结,如有侵权,请联系我"); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }finally{ try { os2.close(); } catch (IOException e) { e.printStackTrace(); } } }