Remove new line character in C

c

Solution

Hmm, wouldn't help to use getc to fill a buffer and remove newline and carriage return characters?

Problem

I am trying to use `getc(character)` to take an element from a file and do stuff with it, but it appears that it must have a `'\n'` before the end of a line is met. How can I remove this so that when I copy the characters I don't have a new line character appearing anywhere - thus allowing me to deal with printing new lines when I choose?

Original source