首页题目详情

在VB中,要打开一个顺序文件用于写入数据,应使用以下哪个语句?

题目配图
A.Open "test.txt" For Output As #1
B.Open "test.txt" For Input As #1
C.Open "test.txt" For Random As #1
D.Open "test.txt" For Append As #1

优质解答

答案

A

解析

使用For Output关键字打开文件时,会创建一个新文件或覆盖现有文件,适用于写入操作。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

Visual Basic语言程序设计单选题中等AI生成