文件读取的技巧
-
借助 ServletContext 读取 Servlet 上下文中的文件,详情见 readFile.jsp 和 readFile2.jsp。
-
使用 java.io.FileReader 读取任意位置的文件,详情见 readFile3.jsp。
75KB
文件大小:
评论区