9481.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: 如何加快读取Txt档的速度..</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 如何加快读取Txt档的速度..</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:mrposts@ms24.hinet.net">AKL</a> on January 22, 1999 at 01:10:03:<p>
In Reply to: <a href="9471.html">如何加快读取Txt档的速度..</a> posted by Yizu on January 21, 1999 at 19:46:15:<p>
Public Sub GetTextFileContent(sPathName As String, sTextContent As String)<p> Dim hFile As Long<p> hFile = FreeFile<p> Open sPathName For Binary Access Read As hFile<br> sTextContent = String(LOF(hFile), 0)<br> Get hFile, , sTextContent<br> Close hFile<br> '执行后 sTextContent就是档案内容<br>End Sub
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9481-->
</ul><!--end: 9481-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?