C # The escape character
Users questions: Intend to be a c # program, read from a file and then output to another file, and now hope to achieve the following results 1. When the file inside "* r * n" when the output into a carriage return, when the file inside "* u1234", when the output corresponds to 1234 unicode characters Fu, etc. In short the general character is to convert the escape character with special meaning as a beginner, hoping to explain more detailed. Thank you for emergencies right now is not the screen output above, if the program which defines stringabc = "hello * r * n" words, Wr iteLine is "hello" Yes, if the words come from the file read, WriteLine becomes "hello * r * n," and that is read out of the abc file and stringabc = @ "hello * r * n" is equivalent to , how the @ " hello * r * n "convert" hello * r * n "does?
Experts answer:Console.WriteLine (" abc * r * n * u1234abc "); output to the screen, the system will automatically convert, do not know if you want to output to screen