c语言文件操作总结.docxVIP

  • 30
  • 0
  • 约5.82千字
  • 约 7页
  • 2019-06-11 发布于广东
  • 举报
C语言文件操作总结 File manipulation function File on / off FILE, *infile, =fopen (ride? in〃,〃W〃); Fclose (inf订e); File read: Fgetc: Format: int fgetc (FILE ^stream); Reads a character from the file pointing to the file pointer stream? The return value of this function is a byte that returns the read. Returns EOF (-1) if it is read at the end of the file or when the error is read. Fgets: The prototype is char *f gets (char, *s, int, N, FILE, * stream); Parameter: *s: character pointer to the data address that will be stored. N: integer data, which reads n - 1 characters from the stream. ^stream: point

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档