如果你有权限,可以用FSO,否则用 ADODB.STREAM
1. FSO的方式
dim txtFso,txtFile
Set txtFso = Server.CreateObject("Scripting.FileSystemObject)
Set txtFile = txtFso.Opentextfile(你的文本文件路径)
然后对txtFile进行操作
2.STREAM的方式
dim txtStream
Set txtStream = Server.CreateObject("ADODB.Stream")
txtStream.Type=0
txtStream.Open
txtStream.LoadfromFile(你的文本文件的路径)
然后执行相应的操作