In this program we are going to update a file forcefully. Firstly we have to make an object of OutputStream and pass a file name in which you want to update in the constructor of a FileOutputStream class. After that pass some data to the stream. The methods we are using in this class has already been discussed in other topics.
Code of the program is given below:
Output is given below:
Congrats you have entered the text forcefully
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: June 7, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles