Different
type of values of Access Mode in opening / creating file in File Handling in C
Programming.
Which are as
follows:
1)"w": First value of Access mode is “w”.This value indicates that the file is just opened for writing content into file. We can write content but we cannot read content of that file. If file already exist then content of file is overwritten else new file will be created.
2 2)"r": In this mode we can
open a file and can only read (cannot write) the content of that file. The file
must exist before using this mode.
3) “a”: Here “a” indicates “appending” means (write
content at the end of any file). If file
does not exist, is created if possible.
4) “w+”: This mode is used to create text file for both
reading and writing content of any file. If file exist, content of file is
overwritten.
5) “r+”: Working of this mode is similar as “w+” but
major difference is that to use this mode file must exist.
6) “a+”: This mode is used to
open text file for reading and appending content of file.
These all modes are used in case of opening text file.
1 Comments
Nice Post Oracle Cloud Automated Testing Tool
ReplyDelete