回覆列表
  • 1 # 使用者1689387893856

    Private Sub Command1_Click()"把txt載入到文字框或者變數中Text1.Text = Replace(Text1.Text, vbCrLf, vbCrLf & vbCrLf)"輸出文字框或者變數即可End Sub

  • 2 # 使用者7004596690954

    Dim p(2) As String "檔案裡有3行就定義為p(2),有4行是p(3),依次類推

    Dim i As Integer

    i = 0

    Open "c:\2.txt" For Input As #1 "引號裡的路徑你自己改,這裡我假設2.text在c盤下

    Do Until EOF(1) = True

    Line Input #1, nextline

    p(i) = nextline & "-0"

    i = i + 1

    Loop

    Close #1

    Open "c:\a.txt" For Output As #1

    Print #1, p(0)

    Print #1, p(1)

    Print #1, p(2)

    Close #1

  • 中秋節和大豐收的關聯?
  • cf手遊火麒麟禮包和黑武士哪個好,有擎天,火麒麟刀弄不起?