I want to trim newline character from fgets output.
while(fgets(buff,1024,fp) ){
    printf("start%send",buff );
If there is a line "C is cool", in the file . Then the above code prints.
startC is cool
end 
But I want it to print like
 startC is coolend 
How to do that
 
     
     
    