0
Trying to save file path into a string
Hi I will need a specific file path to be used multiple times in my code and I would like to make it as easy to change the file path as possible. Therefore I'm trying to save the file path into a string but I get errors because of backslashes. Is there any way to fix this? Here is my string: string FilePath = '@"\\[NAS IP]\[Shared folder]\[path...]"'; This is the error I get on all backslashes: error CS1009: Unrecognized escape sequence error CS1012: Too many characters in character literal Thank you very much for your help
1 Odpowiedź
+ 2
Change backward (\) to forward (/) slash