单项选择题

要对顺序文件进行写操作,下列打开文件语句中正确的是()

A.Open“file1.txt”ForBinaryAs#1
B.Open“file1.txt”ForRandomAs#1
C.Open“file1.txt”ForInputAs#1
D.Open“file1.txt”ForOutputAs#1