- Home /
Ignore "\n" function and similar?
How do i ignore "\ n" and similar? Here is the 2 lines where all the errors taking place:
Code:
string zipToUnpack = "C:\ProgramData\FinalWorldGame\Zip\FinalWorldWindows.zip";
string unpackDirectory = "C:\ProgramData\FinalWorldGame\Game";
Errors:
Assets/Updater2.cs(86,41): error CS1009: Unrecognized escape sequence `\P'
Assets/Updater2.cs(86,53): error CS1009: Unrecognized escape sequence `\F'
Assets/Updater2.cs(86,68): error CS1009: Unrecognized escape sequence `\Z'
Assets/Updater2.cs(86,72): error CS1009: Unrecognized escape sequence `\F'
Assets/Updater2.cs(87,45): error CS1009: Unrecognized escape sequence `\P'
Assets/Updater2.cs(87,57): error CS1009: Unrecognized escape sequence `\F'
Assets/Updater2.cs(87,72): error CS1009: Unrecognized escape sequence `\G'
Comment
Best Answer
Answer by fafase · Aug 03, 2013 at 08:55 PM
put a second slash like
"C:\\ProgramData\\FinalWorldGame\\Zip\\FinalWorldWindows.zip"
or place a @ on the front like:
@"C:\ProgramData\FinalWorldGame\Zip\FinalWorldWindows.zip"
Your answer
Follow this Question
Related Questions
Remove "new lines" from string variable? C# 2 Answers
Using System.Environment.NewLine Not Working on Android 3 Answers
Detecting new lines in .ToCharArray 1 Answer
Parsing and new lines 1 Answer
How to make a line break? 1 Answer