Because the doGet method runs entirely on the servlet server, Java's security mechanism allows you full access to all the servlet server's resources, including file reading and writing.
doGet