Added b to open modes (#22196)

* Added b to open modes

Added the binary mode to the different modes of opening a file

* Fixed formatting
This commit is contained in:
Krinjih
2018-11-19 22:34:36 +01:00
committed by Manish Giri
parent 36886e6318
commit c9a315f58a

View File

@ -62,6 +62,7 @@ C provides a number of build-in function to perform basic file operation
```
In C there are many mode for opening a file
**r** **-** **open a file in reading mode**
..//Provide access only to read a file but not to write it.
@ -77,6 +78,8 @@ C provides a number of build-in function to perform basic file operation
**w+** **-** **opens a file in both reading and writing mode**
**b** **-** **opens a file in binary mode**
Here's an example of reading and writing data to a file
```c