[C] 返回当前文件指针 →→→→→进入此内容的聊天室

来自 , 2019-03-20, 写在 C, 查看 154 次.
URL http://www.code666.cn/view/3e6260b8
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.    FILE *stream;
  6.  
  7.    stream = fopen("MYFILE.TXT", "w+");
  8.    fprintf(stream, "This is a test");
  9.    printf("The file pointer is at byte \
  10.          %ld\n", ftell(stream));
  11.    fclose(stream);
  12.    return 0;
  13. }
  14.  

回复 "返回当前文件指针"

这儿你可以回复上面这条便签

captcha