I am sure i am doing something stupid, but i cannot get anything written to my file... can somebody offer some advice , here is my code. it never falls into error clauses but does not write to the file...
OutFilePtr = fopen("/mnt/sd/ebook/debug.txt","w");
if(!OutFilePtr)
{
//do something about the error.
}
int i = fprintf(OutFilePtr,"Debug ouput!\n");
if(i== -1)
{
// do something about the error.
}
fflush(OutFilePtr);
fclose(OutFilePtr);
OutFilePtr = fopen("/mnt/sd/ebook/debug.txt","w");
if(!OutFilePtr)
{
//do something about the error.
}
int i = fprintf(OutFilePtr,"Debug ouput!\n");
if(i== -1)
{
// do something about the error.
}
fflush(OutFilePtr);
fclose(OutFilePtr);