This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

File reading

#include<stdio.h>

int main()
{

        unsigned  char buff;

        FILE *fp = fopen("Hi.txt","r");

        FILE *out = fopen("Hi1.txt","w");

        while(!feof(fp))
        {

                fread(&buff,1,1,fp);

                fprintf(out, "%d ,",buff);

        }

        fclose(fp);

        fclose(out);

        return 0;
}

This code i am able to run on MingGW.
But on Keil i am able to compile only but not able to Debug Why?


0