i have a text file "input.txt" with the following text:
Pedro
Juan
Alberto
when i sort this
it should print out like this
Alberto
Juan
Pedro
but in my standard output it prints out
Alberto
JuanPedro
How to put newline in this situation
i am using fgets in reading and fputs in writing
thanks
This post has been edited by stoplookandlisten: 13 July 2010 - 11:03 AM

New Topic/Question
Reply




MultiQuote





|