一、例子1 <html> <head> <title>JSP中读文件和写文件的例子</title> </head> //写文件 | |
try //读文件 二、例子2 <%@ page contentType="text/html; charset=GB2312"%> FileReader fr = new FileReader(path + "//File.txt"); //建立FileReader对象,并设定由fr对象变量引用 效果图: |
jsp读写txt文件两例
最新推荐文章于 2021-03-10 21:26:58 发布