Home Segments Top Top Previous Next

837: Mainline

Thus, if an applet reads a file in the course of doing its work, that file must come from the same computer and from the same directory as the applet, or possibly from a subdirectory of that directory. Java prevents an applet, obtained via a network, from opening, reading, or writing local files, but allows that applet to open, read, and write files that reside in the directory tree associated with the place from which the applet came.