站长资源脚本专栏
用vbs实现读取文本文件的方法
简介vbs读取文件方法Function readfile(readfilepath) 'On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") Set file = fs.OpenTextFile(
vbs读取文件方法Function readfile(readfilepath)
'On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
Set file = fs.OpenTextFile(readfilepath, 1, false)
readfile=file.readall
file.close
set fs=nothing
end Function
'On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
Set file = fs.OpenTextFile(readfilepath, 1, false)
readfile=file.readall
file.close
set fs=nothing
end Function
上一篇:VBS编程教程 (第3篇)
下一篇:VBS编程教程 (第1篇)