开发者

Java loading text file

I'm not new to Java..

OK so let's say I have an applet accessable from http://test.com...

I want to load a text file (and if not... create) but not load from Desktop or 开发者_如何学运维Documents because everyone has different path... so where would be the best way to put.

Have the applet store a .zip file of .txt files somewhere? I'm lost...

If you've played Minecraft and know about it... they store your map and items in your temp folder... so something like that. heh.

Thanks.


Java applets run in a very restricted environment. Accessing the local file system can be done, but requires signing and other considerations. To store applet data, your best bet is to use the Applet Persistence API, described here.


You can store your files in temp directory accessed by

TEMP_PATH = System.getProperty("java.io.tmpdir")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜