|
Write unicode into file
Hi Everybody,
I want to write into file in persian
Which class is better to use RandomAccessFile , FileWriter or FileOutputStream
or DataOutPut or What ....?
I write my code in two manner
1) for(int i=0;i<myStr.Length();i++) fos.writeUTF(myStr.charAt(i));
2)fos.write(myStr);
But does not work
What should i do ?
|