非常简单明了。:)
String filePath = "/sdcard/utf8_file.txt";String UTF8 = "utf8";int BUFFER_SIZE = 8192;BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filePath), UTF8),BUFFER_SIZE);BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath), UTF8),BUFFER_SIZE);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)