<html> <title> Java Security Example: Writing Files</title> <h1> Java Security Example: Writing Files </h1> <hr> Here's an applet that tries to write to the file /tmp/foo: <p> <applet code=writeFile.class archive="signedWriteFile.jar" width=500 height=50> </applet> <p> and here's the <a href=writeFile.java>source</a>. <p> 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 named "/tmp/foo" (or, on a PC, "tmpfoo"), with an important message from Duke :-) </center> <hr> Back to the <a href=../index.html>Java Security Page/a>