RE: QCM project help 01-11-2017, 09:51 PM
#9
(01-11-2017, 09:39 PM)Vi-Sion Wrote:(01-11-2017, 09:19 PM)Pikami Wrote: You had posted your code here, now it's gone...
You were not able to write to a file because you were not closing the writer, so all the data was probably just staying in the internal buffer.
After writing to the file you should close it.
Yep that's why i've actually deleted the post . I figured out i didn't close it.
Thanks for your reply .
I got a new question while going with this i figured out that while writing to a txt \n doesn't work, after googling it i found that i should use \r\n instead .
Any idea why ? and what does the \r do ?
'\n' is called a 'Line feed' symbol
'\r' is called a 'Carriage return' symbol
Unix based systems use '\n' as the newline character while Windows/DOS use '\r\n' as the newline character.
'\n' jumps to new a new line while '\r' returns to the start of the line
(This post was last modified: 01-11-2017, 09:53 PM by Pikami.)












![[Image: 9H83e18.png]](https://i.imgur.com/9H83e18.png)
![[+]](https://sinister.li/images/modern/collapse_collapsed.png)