• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >vbs > adodb.stream读文件到数组的代码

adodb.stream读文件到数组的代码

作者: 字体:[增加 减小] 来源:互联网

通过本文主要向大家介绍了adodb.stream,adodb.stream组件,vb adodb.stream,adodb.stream下载,vba adodb.stream等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
Function filenum(filename,i)
Dim st,s 
Set st= CreateObject("ADODB.Stream")
st.Type = 2 '流类型为文本
st.Mode = 3 '模式为读写
st.Open
st.LineSeparator=13 
st.LoadFromFile filename
Do While Not St.EOS 
s = Split(st.readtext(), vbCrLf)   
Loop 
'MsgBox UBound(s) total
filenum=s(i)
st.Close
End function


MsgBox filenum("file.txt",2)
</div>

您可能想查找下面的文章:

  • exe2swf 工具(Adodb.Stream版)
  • adodb.stream读文件到数组的代码

相关文章

  • MSScriptControl.ScriptControl组件属性、方法、事件介绍
  • VBS教程:属性-IsRootFolder 属性
  • VBS教程:VBscript属性-Pattern 属性
  • SendKeys clip.exe 发送中文的代码
  • VBS教程:方法-Items 方法
  • 纯vbs实现zip压缩与unzip解压缩函数代码
  • 通过vbs获取远程host文件并保存到指定目录
  • 用vbscript实现在文本文件中搜索两个项
  • vbscript下调用 Dir 命令的方法
  • VBS编程教程 (第3篇)

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • VBS教程:函数-String 函数
    • Vbs COM之打开/保存文件脚本代码
    • vbs判读盘符被双击的脚本
    • VBS加密解密源码(UserAccounts.CommonDialog) 脚本之家修正版
    • vbs 字符统计功能模块
    • 由vbs sort引发.NET Framework之间的关系说明
    • vbs实现右键菜单中添加CMD HERE
    • vbs 解析json jsonp的方法
    • VBS教程:正则表达式简介
    • VBS教程:属性-Attributes 属性

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有