문제

I'm working on a browser based applet game, and I intend to store the top ten scores in a text file in the directory with the JAR file. How would I read and write to a text file if it's outside the JAR file?

도움이 되었습니까?

해결책

As far as I know the only way to do this is via the JNLP persistence service

다른 팁

A signed applet (jar, JNLP) has the same disk IO permissions as the user running the applet.

Otherwise, javax.jnlp.PersistenceService is your best bet.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top