Lesson 32
Unlock this lesson
Create a free account, then buy the course to open every lesson.
What you will learn in this lesson
- Why programs need files.
- Open a file with fopen and pick the right mode.
- Check that the file really opened.
- Write lines into a file with fprintf and fputs.
- Read a file line by line with fgets.
Everything in C Programming: BCA, MCA, BTech & O Level
- 37 step-by-step lessons
- 10 mini projects with solutions
- A final project for your portfolio
- Real commands and real output in every lesson
- Practice task with a solution in each lesson
- Progress saved to your account