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 named "tmpfoo" on a Windows 95 or Windows NT system.)

Here's the source.

The applet in its present form fails because it attempts to write on your system. The signedWriteFile.html page contains a signed version which will succeed if you have set up Duke as a trusted entity on your computer.