若要“为读/写建立―个新的文本文件”,在fopen函数中应使用的文件方式是 ( )
A.w
B.wb
C.w+
D.wb+
第1题:
若要打开A盘中user子目录下名为aaa.txt的文本文件进行读、写操作,下面符合此要求的函数调用是( )。
A.fopen("A:\user\aaa.txt","r")
B.fopen("A:\\user\\aaa.txt","r=")
C.fopen("A:\user\aaa.txt","rb")
D.fopen("A:\\user\\aaa.txt","w")
第2题:
若要打开A盘上user子目录下名为abc.txt的文本文件进行读、写操作,下面符合此要求的函数调用是
A.fopen("A:userabc.txt", "r")
B.fopen("A:userabc.txt", "r+")
C.fopen("A:userabc.txt", "rb")
D.fopen("A:userabc.txt”, "w")
第3题:
【单选题】若要为“读/写建立一个新的文本文件”,在fopen函数中应使用的文件方式是()
A.“w+”
B.“rt+”
C.“wb+”
D.“wt”
第4题:
若要打开A盘上user子目录下名为abc.txt的文本文件进行读、写操作,下面符合此要求的函数调用是_______
A.fopen("A:userabc.txt","r")
B.fopen("A:userabc.txt","r+")
C.fopen("A:userabc.txt","rb")
D.fopen("A:userabc.txt","w")
第5题:
若要打开A盘上user子目录下名为abc.txt的文本文件进行读、写操作,下面符合此要求的函数调用是()
A.fopen("A:userabc.txt","r")
B.fopen("A:userabc.txt","r+")
C.fopen("A:userabc.txt","rb")
D.fopen("A:userabc.txt","w")