If we want to create a complex string (that is, we need to use the original string, and cannot use the escape character \r\n) and need "CRLF" as the newline character, it does not work to save the source code file as "CRLF". The string always uses "LF" as the newline character
Does the compiler need to make changes, such as: let the string follow the newline character of the source code, or add an error prompt“ error:couldn't read src\ main.rs : stream did not contain valid LF ", just like" error: couldn't read src\ main.rs : stream did not contain valid UTF-8".
The above is machine translation, my English is not good
Yes, it is actually very simple to achieve the result. But the CRLF string becomes LF when written into the code, which may be a bit forced for me. Maybe it is my own problem. Thank you for your reply.