Solved

Java Reads and Writes?

Posted on 1998-06-24
4
184 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

766 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