本文介绍了显示文本文件的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用FSO在使用ASP的Web浏览器中以三列格式显示带有标题的文本文件.我将如何修改下面的示例代码来实现这一目标?

I am trying to use FSO to display a text file in a three column format with headers in a web browser using ASP. How would I modify the sample code below to achieve this?

Dim OpenFileobj, FSOobj,FilePath
FilePath=Server.MapPath("O.txt")
Set FSOobj = Server.CreateObject("Scripting.FileSystemObject")


if FSOobj.fileExists(FilePath) Then
Set OpenFileobj = FSOobj.OpenTextFile(FilePath, 1)

Do While Not OpenFileobj.AtEndOfStream
Response.Write OpenFileobj.ReadLine & "<br>"
Loop

OpenFileobj.Close
Set OpenFileobj = Nothing
Else
Response.Write "File does not exist"
End if
Set FSOobj = Nothing


感谢

推荐答案



这篇关于显示文本文件的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 18:28