Files

8 lines
355 B
Plaintext

Reading and Writing Files in C
copy - copy one file to a new file, one letter at a time.
lines - read lines from a text file using fgets.
todo: lines_2 - remove the \n from the end of each line.
https://stackoverflow.com/questions/2693776/removing-trailing-newline-character-from-fgets-input
https://man.freebsd.org/cgi/man.cgi?query=strcspn&sektion=3