| Author |
how to write the String Array into the new file
|
niras iva
Greenhorn
Joined: May 10, 2011
Posts: 18
|
|
Hello Sir:
i create a own file My coding is here,
i want to write the value of s in my file.
i want to take the value of s and write into my new file..how can i do this?
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
If you want to write it as text, then don't use DataOutputStream. Streams (InputStream and OutputStream) are for reading and writing binary data, not text. If you want to write text, use a Writer instead of an OutputStream. For example:
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
niras iva
Greenhorn
Joined: May 10, 2011
Posts: 18
|
|
|
Thank you sir
|
 |
 |
|
|
subject: how to write the String Array into the new file
|
|
|