FileInputStream fis = new FileInputStream(inFile); InputStreamReader isr = new InputStreamReader(fis); BufferedReader br = new BufferedReader(isr); String temp = null; while((temp = br.readLine()) != null) { sb.append(temp); sb.append("/r/n"); } br.close(); String str = sb.toString(); …… FileOutputStream fos = new FileOutputStream(outFile); OutputStreamWriter osr = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osr); bw.write(str); bw.close();