Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 582 Bytes

README.md

File metadata and controls

26 lines (14 loc) · 582 Bytes

File-Handling-C

Pablo Silva Noreña 180462

  1. "r"

Opens a file for reading. The file must exist.

  1. "w"

Creates an empty file for writing. If a file with the same name already exists, its content is erased and the file is considered as a new empty file.

  1. "a"

Appends to a file. Writing operations, append data at the end of the file. The file is created if it does not exist.

  1. "r+"

Opens a file to update both reading and writing. The file must exist.

  1. "w+"

Creates an empty file for both reading and writing.

  1. "a+"

Opens a file for reading and appending.