<% Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile(Server.MapPath("/text/testread.txt"), 1) Response.Write(f.Read(2)) Response.Write("现在指针位于文件的第 " & f.Column & " 个字符") f.Close Set f=Nothing Set fs=Nothing %>
现在指针位于文件的第 " & f.Column & " 个字符
效果会显示在右边 Create by 软晨网(RuanChen.com)