读取文本文档中的前2个字符 <% Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile(Server.MapPath("/text/testread.txt"), 1) Response.Write(f.Read(2)) f.Close Set f=Nothing Set fs=Nothing %>
读取文本文档中的前2个字符
效果会显示在右边 Create by 软晨网(RuanChen.com)