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

Fope() in keil

I am trying to generate a log file by invoking the function "fopen()" in keil for samsung S3FS92G target though i m getting the result in serial window but finally needs to log in txt or xml file.
Even though I am not getting any compilation error (like fopen() missing) but the log file is not created at the expected system path.
any help on generating a txt file using fopen

Parents
  • no file is getting created at all at any location, Its returning NULL value

    if((fp=fopen("record.txt","w"))==NULL) { printf("cannot open file"); exit(1); }

    this part is just printing cannot open file on serial window


    Note: i dont have keil FlashFS library

Reply
  • no file is getting created at all at any location, Its returning NULL value

    if((fp=fopen("record.txt","w"))==NULL) { printf("cannot open file"); exit(1); }

    this part is just printing cannot open file on serial window


    Note: i dont have keil FlashFS library

Children