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