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 the need of structure in c?
How many levels deep can include files be nested?
Is anything faster than c?
What would be an example of a structure analogous to structure c?
What are the uses of a pointer?
What is unary operator?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Are enumerations really portable?
How can I delete a file?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
How to set file pointer to beginning c?
What is the difference between new and malloc functions?
Explain pointer. What are function pointers in C?
Why do we need functions in c?
Can you please explain the difference between strcpy() and memcpy() function?