Learning c language (3): Random file read and write

1. sscanf 和 sprintf (const char* s, const char* format, ***)

 本质上是对格式化数据字符串的转换

非针对文件流

2. 文件的随机读写

  1. fseek: 改变文件流读写位置
  2. ftell: 获取当前读写位置
  3. rewind: 回到文件初始位置