Original Post
Hi, I am writing a little program that reads in a file and then outputs the contents to another file but ommiting new line characters, the problem is, the code is just creating a complete copy. here is the meat of it [/source] Can you see what's wrong with that?
character = getc(inFile);
while(character != EOF)
{
if(character == '/n')
;
else
putc(character, outFile);
character = getc(inFile);
}
[/Source]