program lines - read lines from a text file using fgets
This commit is contained in:
8
c_programming/files/files.txt
Normal file
8
c_programming/files/files.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user