在窗体中添加一个命令按钮Commandl和一个文本框Text1,编写命令按钮Com-mand1 的 Click事件代码; Private Sub Command1_Click() Dim S As String*20 S=TextText End Sub 该程序的功能是当单击按钮Command1时,把变量S中内容写入一个顺序文件 datl. dar中,正确的程序段是 ( )A.Open 'datl. dat', For lnput As#1 Write井1,SB.Open'datl. dat' For Output As#1 Write#1, SC.Open'dat', For Binary As #1 Write #1, S Close #1D.Open datl. dat'For Random As #1 Write #1, S Close #1
A.Open
B.Open'datl.
C.Open'dat',
D.Open