C file input/output: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 18:
|r || rb || || open for reading || beginning
|-
|w || wb || || open for writing (creates file if it doesn't exist). Deletes content and overwrites the file. || begginingbeginning
|-
|a || ab || || open for appending (creates file if it doesn't exist) || end
|-
|r+ || rb+ || r+b || open for reading and writing || begginingbeginning
|-
|w+ || wb+ || w+b || open for reading and writing. Deletes content and overwrites the file. || begginingbeginning
|-
|a+ || ab+ || a+b || open for reading and writing (append if file exists) || end