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
How can I find out if there are characters available for reading?
How can I run c program?
What is difference between class and structure?
Explain how do you determine the length of a string value that was stored in a variable?
What is omp_num_threads?
What is f'n in math?
What is array in C
Is it cc or c in a letter?
What is linear search?
Explain the Difference between the New and Malloc keyword.
What is the difference between procedural and declarative language?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Can we add pointers together?
What is sizeof c?
List the difference between a "copy constructor" and a "assignment operator"?