the code was using "\n" to create newline but to my surprise when I opened the notepad all the text was in one line, and i was going crazy why the newline doesn't shows up like it should, so I researched a bit on internet and found many other people came across this problem.
So I found windows notepad doesn't recognizes \n for what you can have this fix in code if you are want to see in notepad.
Add the below line as definition at the beginning of the code:
- #define \n \r\n
I'm surprised windows has to change things , not define or set things to keep the ansi c standard .
to add your comment click read more...