what are these called \\r \\n and is there a tutorial that explains them?
They're escape sequences. \n is a newline and \r is a carriage return.
\n
\r
In Windows most text editors have a newline as \r\n and on unix it's \n