From c9a315f58aeee535c5b3e5f2f903d0b6c82968f9 Mon Sep 17 00:00:00 2001 From: Krinjih Date: Mon, 19 Nov 2018 22:34:36 +0100 Subject: [PATCH] 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 --- guide/english/c/file-handling/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guide/english/c/file-handling/index.md b/guide/english/c/file-handling/index.md index 51af166e79..5c8fcd9ca0 100644 --- a/guide/english/c/file-handling/index.md +++ b/guide/english/c/file-handling/index.md @@ -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