Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bertha Ferguson   on Sep 12 In Java Category.

  
Question Answered By: Isra Demir   on Sep 12

If you mean a file  on the local machine, you won't be able to consult
it from within an applet, which runs in a security-
protected "sandbox". If you mean a file on the server, you need to
set the codebase in the web  page, i.e.

<applet width="200" height="50" code="Applet.class"
codebase="."></applet>

and put the file in the same folder as the applet. Also, avoid J++
if you can help it!

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on File Acess in java Or get search suggestion and latest updates.


Tagged: