What is the best way to scan in a string that HAS white spaces if I want the scan to stop once it finds a '\n' character. I need to do this both from regular user input, stdin, and from a file. Should I use scanf, fscanf, or fgets? If so, what is the syntax to make the string stop getting data after it finds a newline character?