11134.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Line Input #intFileNumber</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Line Input #intFileNumber</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by wei on March 19, 1999 at 04:28:54:<p>
In Reply to: <a href="11091.html">叫拜□□弄□&#12421;□郎&#30125;)□︽&#35745;&#12356;□□&#22330;&#12421;□</a> posted by ΘΘ on March 18, 1999 at 10:22:23:<p>
<br>There is no straightforward way to jump to a certain line of text file, as I know.<p>A cheating solution:<p>Dim i as interger<br>Dim sLineGet as string<p>Open YourFileName for Input as #1<p>Do until(EOF(1))<br>  Line Input #1, sLineGet<br>  i = i+1;<br>  if i = LineIWantToRead then<br>    debug.print sLineGet<br>  end if<br>Loop<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 11134-->
</ul><!--end: 11134-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?