This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Can any one tell me i want to write a string using the FileOutputStream the write method takes a byte as parameter can any one tell me whether any other possible way to write the string in the file , or any method which converts String to Byte . ------------------
Hi, You can convert string into an array of bytes using the following methods in String class: 1. public byte getBytes(); 2. public void getBytes(int, int, byte, int); 3. public byte getBytes(java.lang.String) throws java.io.UnsupportedEncodingException;
check it out for urself: just type "javap java.lang.String |more" at the command prompt bye fazal.