0x15. C - File I/O
Description
What you should learn from this project:
- Look for the right source of information online
- How to create, open, close, read and write files
- What are file descriptors
- What are the 3 standard file descriptors, what are their purpose and what are their POSIX names
- How to use the I/O system calls open, close, read and write
- What are and how to use the flags O_RDONLY, O_WRONLY, O_RDWR
- What are file permissions, and how to set them when creating a file with the open system call
- What is a system call
- What is the difference between a function and a system call
- Write a function that reads a text file and prints it to the POSIX standard output.
- Create a function that creates a file.
- Write a function that appends text at the end of a file.
- Write a program that copies the content of a file to another file.
- Write a program that displays the information contained in the ELF header at the start of an ELF file.
Author