Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem writing to a file using a URLConnection...

807605Jul 17 2007 — edited Jul 18 2007
Hi all...

I've been reading throught the sun's toturial on networking that you can find here:

http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

this toturial provides a java program that uses a servelet to write some text. First, I don't know what a servelet is. Second, I can't understand to what is this program writing. That is, where does it store it's output.

what I am trying to do is to allow my applet to write some data to a txt file that resides in the same directory as the applet. So, how can i do that, or in other words, what is the simplest way to do that? Do I need to write a servelet or just open a connection to the txt file and start writing ?

regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2007
Added on Jul 17 2007
5 comments
149 views