Solved

Java Reads and Writes?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Checkbox and ListView in Android Layout 4 56
Weekend adv creator 3 14
Way to decrease size of apk file 9 46
tomcat administrtor 12 34
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

864 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now