Status: Tags: Links: C Reading and writing (stdin, stdout)
C Reading and writing to files
|
|
fgets reads the file until it either reaches the character limit (specified by the second argument) or reaches a newline character ('\n'). If you don’t put newlines when your adding songs to the file it won’t know where the lines end.
Backlinks
|
|
References:
Created:: 2021-10-05 16:37