设在工程中有一个标准模块,其中定义了如下记录类型: Type Books name As String * 10 telNum As String * 20 End Type 在窗体中添加一个名为Command1的命令按钮,要求当执行事件过程Command1_Click时,在顺序文件Person.txt中写入一条记录。下列能够完成该操作的是( )。 A. Private Sub Command1_Click() Dim B As Books Open ″c:\person.txt″ For Output As #1 B.name = InputBox(″输入姓名″) B.telNum = InputBox(″输入电话号码″) Write #1,B.name,B.telnum Close #1 End Sub B. Private Sub Command1_Click() Dim B As Books Open ″c:\person.txt″ For Input As #1 B.name = InputBox(″输入姓名″) B.telNum = InputBox(″输入电话号码″) Write #1,B.name,B.telnum Close #1 End Sub C. Private Sub Command1_Click() Dim B As Books Open ″c:\person.txt″ For Output As #1 B.name = InputBox(″输入姓名″) B.telNum = InputBox(″输入电话号码″) Write #1,B Close #1 End Sub D. Private Sub Command1_Click() Dim B As Books Open ″C:\person.txt″ For Output As #1 name = InputBox(″输入姓名″) telNum = InputBox(″输入电话号码″) Write #1,name,telNum Close #1 End Sub