Question:

About my project in java(notepad)

by  |  earlier

0 LIKES UnLike

i m making an applet in java.... a notepad.so i have included all the features of notepad in it.i can open a file. change the font etc.... but i am getting a problem with one option that is saving a file.. how to save a file by using Input/Output Streams. i know how to open a file. i have used the buffered input stream for that and also buffered output stream.. but how to save a file using streams..??? plzz guys can u help me.

 Tags:

   Report

1 ANSWERS


  1. Basically you are stuffed. The security settings of Applets prevent them from saving files. It will only run as an application.

    Well, that isn't strictly true. You should be able to open a TCP link back to your server so if you have some code running on the server to accept the data you can save the file remotely. A Java applet is not allowed to write to the local disk.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions