C - Programming Language
This course covers the basics of programming in C. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!

Reading From External Files

Lesson 30
Author : 🦒
Last Updated : November, 2017


Code

Copychar line[255];
FILE * fpointer = fopen("employees.txt", "r");

fgets(line, 255, fpointer);
printf("%s", line);

fclose(fpointer);