I have a string right, which has data put into it from a file I am reading from.
It reads each line of the file and stores it in this variable. Anyway.
It appears that when it is storing this string in this variable it is also adding a "\n"
Meaning when I join the strings together instead of looking like this:
It looks like
How can I get rid of the newline? Could I use strlen to find the length THEN use a function to replace the last character (which would be the newline ? or would it have a NULL after it?)
I am using strcat to join the strings together.