• 2022-06-09
    若要把数据追加到顺序文件D:\Stu.txt末尾,可以使用下列语句实现的是( )。
    A: Open "D:\Stu.txt" For Output As
    B: 1
    C: Open "D:\Stu.txt" For Append As
    D: 1
    E: Open D:\Stu.txt For Output As
    F: 1
    G: Open D:\Stu.txt For Append As
    H: 1
  • B

    内容

    • 0

      要从磁盘上新建一个名为"c:\t1.txt"的顺序文件,如下语句中正确的是(). A: F="c:\t1.txt" Open "F" For Append As B: 2 C: F="c:\t1.txt" Open "F" For Output As D: 2 E: Open c:\t1.txt For Output As F: 2 G: Open "c:\t1.txt" For Output As H: 2

    • 1

      下列哪一种是以顺序文件方式打开文件并进行写操作( ). A: Open "c:\file1.dat" For Output as B: 1 C: Open "c:\file1.dat" For Input as D: 1 E: Open "c:\file1.dat" For Print as F: 1 G: Open "c:\file1.dat" For Write as H: 1

    • 2

      如果从数据文件 c:\data.txt 中读取数据时,以下打开文件方式中,正确的是( ). A: Open c:\data.txt For Input As B: 1 C: Open c:\data.txt For Output As D: 1 E: Open "c:\data.txt" For Input As F: 1 G: Open "c:\data.txt" For Output As H: 1

    • 3

      为了读取数据,需要打开顺序文件“D:\data5.txt”,以下正确的命令是。 A: Open "E:\UserData.txt" For Input As B: 2 C: Open "E:\UserData.txt" For Output As D: 2 E: Open E:\UserData.txt For Output As F: 2 G: Open E:\UserData.txt For Input As H: 1

    • 4

      要向Data.dat 文件中添加数据,下面语句中正确的是______ 。 A: Open "Datdat" For OutputAs #1 B: Open "Datdaf' For InputAs #1 C: Open Datdat For OutputAs #I D: Open Datdar For Append As #1