How to Read the File in C Programming Language | using fopen , fgets functions

preview_player
Показать описание
#fileoperation #c #fread #fopen

hello friends ,
using these program you can read from any text file...
to find the more information about fopen and fgets function please use man command

here is the code

int main()
{
char buffer[512];

while(fgets(buffer,sizeof(buffer),fp)!=NULL)
printf("%s",buffer);

fclose(fp);

return 0;
}
Рекомендации по теме
welcome to shbcf.ru