Using the java FileOutputStream class, you can easily write any given byte array into a text file easily. For example the below code.
String fileName = "test.txt";
FileOutputStream fos = new FileOutputStream(fileName);
fos.write(byteArray);
fos.close();
Friday, June 24, 2011
Java: write byte array into file
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment