#include<stdio.h>
int main()
{
FILE *anik;
anik = fopen("Das.txt", "r");
char an[25];
if(anik == NULL)
{
printf("File Does Not Exist\n");
}
else
{
printf("File is open\n");
while(!feof(anik))
{
fgets(an,25, anik);
printf("%s\n", an);
}
fclose(anik);
}
return 0;
}
int main()
{
FILE *anik;
anik = fopen("Das.txt", "r");
char an[25];
if(anik == NULL)
{
printf("File Does Not Exist\n");
}
else
{
printf("File is open\n");
while(!feof(anik))
{
fgets(an,25, anik);
printf("%s\n", an);
}
fclose(anik);
}
return 0;
}
Comments
Post a Comment