# Re: 如何在文字档格式中换行？

Posted by Nicky on December 23, 1998 at 13:54:44:

In Reply to: 如何在文字档格式中换行？ posted by dick on December 18, 1998 at 16:55:23:

: 如何在按了Command1之后再按第二次能把Text1.Text的文字接到下一行去！
: Private Sub Command1_Click()
: Open "C:\aa.txt" For Output As #1
: Print #1,
: Print #1, Text1.Text
: Close #1
: End Sub
: 谢谢！！

你可在Form_Load 时先把aa.txt 打开
Open "C:\aa.txt" For Append As #1
然后在 Private Sub Command1_Click() 输入资料
: Print #1,
: Print #1, Text1.Text
: End Sub
结束程式再将aa.txt关闭

Follow Ups: