r+b filemode

Oleg Moroz oleg_moroz at yahoo.com
Thu May 26 17:23:41 UTC 2011


Hello everyone, i have a trouble with opening file. i have opened the file with "wb" mode. Write to it 512 bytes. close it. after this open it with "r+b" mode. then trying:

/// 
fseek(file,0,SEEK_END);
int i = ftell(file);
///



after this i=0

but when i'm opening file with "rb" mode - i=512. how i can use "r+b" mode?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20110526/68188744/attachment.html>


More information about the users mailing list