C中的FILE结构中的r +是什么? [英] what is r+ in FILE structure in C?
本文介绍了C中的FILE结构中的r +是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在以下地址阅读一些C文本: https://cs.senecac.on.ca/~btp100/pages/content/files.html
I am reading some C text at the address: https://cs.senecac.on.ca/~btp100/pages/content/files.html
在"OPENING A FILE
"部分中,作者写道:
in the section "OPENING A FILE
", the author wrote:
""r+" - opens the file for reading and possibly writing"
.
我不明白为什么作者说"possibly writing
".为什么不使用"reading and writing
".在某些情况下,如果使用"r+"
,我们将无法写入文件?
I dont understand why the author said "possibly writing
". Why not "reading and writing
". are there some cases we cannot write to file if using "r+"
?
推荐答案
措辞不佳.应该是:
r+
Open file for update (reading and writing).
这篇关于C中的FILE结构中的r +是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文