can you explain in brief what is "r+" mode in a file... i
know that it si used to read and modify rhe existing
content.... but explalanation about the file pointer in "r+"
mode i wann to know???????????
Answer Posted / manoj
Mode Type of file Read Write Create Truncate
"r" text yes no no no
"rb" binary yes no no no
"r+" text yes yes no no
"r+b" binary yes yes no no
"rb+" binary yes yes no no
"w" text no yes yes yes
"wb" binary no yes yes yes
"w+" text yes yes yes yes
"w+b" binary yes yes yes yes
"wb+" binary yes yes yes yes
"a" text no yes yes no
"ab" binary no yes yes no
"a+" text yes yes yes no
"a+b" binary no yes yes no
"ab+" binary no yes yes no
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is double pointer?
How does sizeof know array size?
What are the 5 types of organizational structures?
Explain what is the difference between far and near ?
How can I automatically locate a programs configuration files in the same directory as the executable?
What is the scope of global variable in c?
What do you mean by recursion in c?
Difference between malloc() and calloc() function?
What is LINKED LIST? How can you access the last element in a linked list?
Is main an identifier in c?
What is the use of getchar() function?
How can this be legal c?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is the difference between test design and test case design?
What are directives in c?