[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Java Reads and Writes?

Posted on 1998-06-24
4
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.
Suggested Courses

649 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