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+就是读写。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com