By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,649 Members | 1,490 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,649 IT Pros & Developers. It's quick & easy.

the appended text is not being displayed in english.I think some how it is being encr

P: 1
am appending two files.but the appended text is not displayed properly. the appended text is like 䡄偃䔠慮汢摥夠獥 ...can some 1 help me wth this...

this the code:
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWrite("D:/SoftwaresInstalled/Softwareslist.txt",true)));
BufferedReader in = new BufferedReader(new FileReader("D:/SoftwaresInstalled/Sysdet.txt"));
String str;
while ((str = in.readLine()) != null) {

out.write(str.toString());
System.out.println(str);
}
Nov 27 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.