<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">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:<div><br></div><div>/// <div>fseek(file,0,SEEK_END);</div><div>int i = ftell(file);</div><div>///</div><div><br></div><div><br></div><div><br></div><div>after this i=0</div><div><br></div><div>but when i'm opening file with "rb" mode - i=512. how i can use "r+b" mode?</div></div></span></div></div></body></html>