Java Security Example: Writing Files


Here's an applet that tries to write to the file /tmp/foo on a Solaris system (or to the file C:\tmpfoo on a Windows 95 or Windows NT system.)

</COMMENT>

Here's the source.

This applet is signed by Duke - if you've configured your system to allow applets signed by Duke to run, go and check your /tmp area! (Or your c: drive, if you're running on a PC.) You'll find a file there named foo, with an important message from Duke :-)


Back to the Java Security Page - Signed Applet Example