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

Simple question about fopen "a" option

Hi

I've search the website and the manuals and can't get an answer, i would phone up but as it's out of hours i thought i'd ask here first.

I am using RTL-ARM and the FlashFS supplied by Keil on external Flash chip in my system.

I can't determine from the documentaion if a file can be modified eg. opened with fout=fopen(filename,"a") changing the file pointer with fseek and then overwriting data using fwrite?

Thanks
Luke

Parents
  • You can have one file opened twice for read. However the same file opened twice first for read and second for write is not supported. Second call to fopen() for write will fail. This is because a file allocation information is simplified to keep FlashFS simple and allow fast file access, but on the other hand this does not allow such requests.

    Franc

Reply
  • You can have one file opened twice for read. However the same file opened twice first for read and second for write is not supported. Second call to fopen() for write will fail. This is because a file allocation information is simplified to keep FlashFS simple and allow fast file access, but on the other hand this does not allow such requests.

    Franc

Children