网友您好, 请在下方输入框内输入要搜索的题目:
窗体上有1个名称为Text1的文本框和1个名称为Command1的命令按钮。要求程序运行时,单击命令按钮,就可以把文本框中的内容写到文件out.txt中,每次写入的内容附加到文件原有内容之后。下面能够实现上述功能的程序是( )。
A.Private Sub Command1_Click()
Open “out.txt” For Inpit As#1
Print#1,Text1.Text
Close#1
End Sub
B.Private Sub Command1_Click()
Open “out.txt” For Outpit As#1
Print#1,Text1.Text
Close#1
End Sub
C.Private Sub Command1_Click()
Open “out.txt” For Append As#1
Print#1,Text1.Text
Close#1
End Sub
D.Private Sub Command1_Click()
Open “out.txt” For Random As#1
Print#1,Text1.Text
Close#1
End Sub
参考答案
更多 “ 窗体上有1个名称为Text1的文本框和1个名称为Command1的命令按钮。要求程序运行时,单击命令按钮,就可以把文本框中的内容写到文件out.txt中,每次写入的内容附加到文件原有内容之后。下面能够实现上述功能的程序是( )。A.Private Sub Command1_Click()Open “out.txt” For Inpit As#1Print#1,Text1.TextClose#1End SubB.Private Sub Command1_Click()Open “out.txt” For Outpit As#1Print#1,Text1.TextClose#1End SubC.Private Sub Command1_Click()Open “out.txt” For Append As#1Print#1,Text1.TextClose#1End SubD.Private Sub Command1_Click()Open “out.txt” For Random As#1Print#1,Text1.TextClose#1End Sub ” 相关考题
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)