Reputation: 762
How do I save an image, or text file for later use?(writing and creating a file)
Upvotes: 2
Views: 204
Reputation: 4974
Use FileOutputStreams. Images should be written in binary mode.(DataOutput/InputStream) Search engines provide you several matches like: http://www.roseindia.net/java/example/java/io/java-write-to-file.shtml
Upvotes: 1
Reputation: 52185
You can take a look at this tutorial for writing to files and this tutorial for Java Serialization. You can also use Google to find tutorials about what you need to do.
Upvotes: 0