C语言流文件的打开方式都有哪些啊?
发布网友
发布时间:2022-04-24 04:39
我来回答
共1个回答
热心网友
时间:2023-10-28 21:43
fopen("*.*","r")
fopen("*.*","r+")
fopen("*.*","rb")
fopen("*.*","rb+")
fopen("*.*","w")
fopen("*.*","w+")
fopen("*.*","wb")
fopen("*.*","wb+")
fopen("*.*","a")
fopen("*.*","a+")
fopen("*.*","ab")
fopen("*.*","ab+")
逗号右边的引号里r表示只读,w只写(会覆盖原内容,如果以前已经存过该文件),a追加,带b的表示以二进制形式读(写),带+的表示可读可写,比如r为只读,r+就是读写。
热心网友
时间:2023-10-28 21:43
fopen("*.*","r")
fopen("*.*","r+")
fopen("*.*","rb")
fopen("*.*","rb+")
fopen("*.*","w")
fopen("*.*","w+")
fopen("*.*","wb")
fopen("*.*","wb+")
fopen("*.*","a")
fopen("*.*","a+")
fopen("*.*","ab")
fopen("*.*","ab+")
逗号右边的引号里r表示只读,w只写(会覆盖原内容,如果以前已经存过该文件),a追加,带b的表示以二进制形式读(写),带+的表示可读可写,比如r为只读,r+就是读写。
热心网友
时间:2023-10-28 21:43
fopen("*.*","r")
fopen("*.*","r+")
fopen("*.*","rb")
fopen("*.*","rb+")
fopen("*.*","w")
fopen("*.*","w+")
fopen("*.*","wb")
fopen("*.*","wb+")
fopen("*.*","a")
fopen("*.*","a+")
fopen("*.*","ab")
fopen("*.*","ab+")
逗号右边的引号里r表示只读,w只写(会覆盖原内容,如果以前已经存过该文件),a追加,带b的表示以二进制形式读(写),带+的表示可读可写,比如r为只读,r+就是读写。
热心网友
时间:2023-10-28 21:43
fopen("*.*","r")
fopen("*.*","r+")
fopen("*.*","rb")
fopen("*.*","rb+")
fopen("*.*","w")
fopen("*.*","w+")
fopen("*.*","wb")
fopen("*.*","wb+")
fopen("*.*","a")
fopen("*.*","a+")
fopen("*.*","ab")
fopen("*.*","ab+")
逗号右边的引号里r表示只读,w只写(会覆盖原内容,如果以前已经存过该文件),a追加,带b的表示以二进制形式读(写),带+的表示可读可写,比如r为只读,r+就是读写。
热心网友
时间:2023-10-28 21:43
fopen("*.*","r")
fopen("*.*","r+")
fopen("*.*","rb")
fopen("*.*","rb+")
fopen("*.*","w")
fopen("*.*","w+")
fopen("*.*","wb")
fopen("*.*","wb+")
fopen("*.*","a")
fopen("*.*","a+")
fopen("*.*","ab")
fopen("*.*","ab+")
逗号右边的引号里r表示只读,w只写(会覆盖原内容,如果以前已经存过该文件),a追加,带b的表示以二进制形式读(写),带+的表示可读可写,比如r为只读,r+就是读写。