Hello,
I need to communicate a delimiter to a customer, so that they know in a sentence : "Hey, here starts a new line"
We want to use a character which cannot be used by the users of the application.
I want to use the first ASCII character. How do I split up my large string with ascii character 1 in C#?
I think not char(1) because char is unicode.
Thans in advance
Mark.
Loading
AnttiPosted Dec 9, 2005, 2:32 AM
string hello = "Hello0\x0000Hello1\x0000Hello2\x0000Hello3\x0000Hello4";
Console.WriteLine(hello);
string[] splits = hello.Split(new char[] {'\x0000'});
foreach (string str in splits)
{
    Console.WriteLine(str);
}
Isn't ASCII 0x00 and Unicode 0x0000 exactly the same character...?