Why if(ch=='\n') doesn't work??
Yes it does. I think I was confused on what he was asking for. I apologize and Thanks for the clarification, ammar.
cj