Solved

Java Reads and Writes?

Posted on 1998-06-24
4
185 Views
Last Modified: 2010-03-30
I just picked up a book on Java and built a short program.  I can read from a file and there are write functions(classes) available.  I put my program on the web to see it run.  I doesn't.  I get security protection errors attempting to read from a file.  Why?  What good is Java if I can't read from or write to a file when using the web?  Is there something I don't understand about I/O functions in Java on the web?  Any program of value has to have these abilities.

Thanks for any suggestions you may have.

Whoever responds to this question, please give detailed information.  Thanks again.

AJY
0
Comment
Question by:youngs101497
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
evijay earned 50 total points
ID: 1223657
Applets have several security restrictions to make java a secure language for web. One of the restriction is it cannot read / write files or otherwise some malicious applets can destroy the data of harddisk whenever you hit a web page unknowingly of those malicious applets. You can read/write client side files only if you sign the applets and the client browser user allows it to do so.
0
 

Author Comment

by:youngs101497
ID: 1223658
What do you mean by the term "client side files?"  How do I sign an applet?  I would really like to use these abilities. If I can't, what language should I explore so I can read and write to a file which exists on the web?

Thanks again.

AJY
0
 
LVL 4

Expert Comment

by:evijay
ID: 1223659
0
 
LVL 4

Expert Comment

by:evijay
ID: 1223660
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error in @AspectJ Based AOP with Spring 2 23
hashmap order 17 42
java mysql insert application 14 46
jsp CRUD operations with and without prepared statement also hibernatge 1 30
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question