Skip to main content

C Programming - file manipulation

Access Modes
 “r” File is opened for reading only, does not create a file.
“w” File is opened for writing only (start from the beginning of the file, wipes any stored data)
 “a” File is opened for appending only (start from the end of the file without deleting anything)
“r+” File is opened for reading plus (read and insert (overwrite) starting from the beginning of the file, can not create a new file)
“w+” File is opened for writing (create, read and write, wipes any stored data)
 “a+” File is opened for appending (read the whole file or writing at the end

Comments

Popular posts from this blog