当前位置:DOS资源站资料中心VBS脚本 → 用vbs实现读取文本文件的方法

用vbs实现读取文本文件的方法

减小字体 增大字体 作者:佚名  来源:不详  发布时间:2008-4-6 22:06:06
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