domlao
domlao

Reputation: 16029

Accessing a file in a Java applet

I'm leaning Java language. And I am wondering how can I possible to access(read/write) a text file in a java applet that reside in a server?

Please advise.

Many thanks

EDIT: Only read access but is there any method or way to implement that my app can save a data to a server, like database?

Upvotes: 3

Views: 117

Answers (1)

KV Prajapati
KV Prajapati

Reputation: 94635

No you can't write/update it but you can read its content using java.net.URL and java.net.URLConnection classes.

Upvotes: 2

Related Questions