Solved

Java Reads and Writes?

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

744 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

8 Experts available now in Live!

Get 1:1 Help Now