Hi folks,
I've been developing a small console application and I'm trying to move all of my error message strings to a central resource file.
This is an example of some code before using the resource file. Notice how I use the \n character to insert a new line.
dsiplays...Code:Console.WriteLine ("Directory does not exist!\nUpdate Cancelled.");
Directory does not exist!
Update Cancelled.
My problem is this, when I move this string to a resource file, the value does not interpret the \n character as a New Line character.
displays...Code:Console.WriteLine(MyResourceFile.MyResourceString);
Directory does not exist!\nUpdate Cancelled.
Can anyone tell me how I can get the resource file string to be interpreted as including the new line character.
Thanks in advance,




Reply With Quote