Reading From External Files

Lesson 30
Author : Afrixi
Last Updated : November, 2017


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!
Table of Content

Code

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

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

fclose(fpointer);