StringInput/Output
Read a string
File *fp;
char s[80];
fgets(s, 80, fp);
Read from file up to 79 characters or when newline is reached, '\n' included in the string. fgets appends the null character '\0'.
gets(s);
Read from standard input until newline, the '\n' character is not included in s. Null character appended.
Write a string
fputs(s, fp);
write to file all characters in s up to (but not include) the null character.
puts(s);
Write to standard output in s up to (but not include) the null character. A newline character is appended to the string.