Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
I have a file whose contents are written in french. I want to read that file and edit the file and then write the contents back to the same file. How do I do that?I am reading file content is instanceof ByteBlock only. Then I am using byte[] blk = ((ByteBlock) content).bytes();FileOutputStream fs = new FileOutputStream("a.txt");fs.write (blk, 0, blk.length);fs.close();During writing a file I want use encoding like ISO-8859-1. I can't use Writer because my contents are byte stream. Same way I can't use BufferedOutputStream or DataOutputStream because its not supporting encoding. How do I solve this. Please help me.
Questions by bjmanu
Related Answered Questions
Related Open Questions