I'm trying to convert string to keys from a text file and I need to split text. For example: Code c#
string[] controls = File.ReadAllLines(FilePath);
Keys move up = (Keys)Enum.Parse(type of(Keys),controls[1].Split("|", StringSplitOption.None), true);
In the text file at the line[1] I have : moveUp |W;
I want to set the char W as keys.
Thanks to reply and sorry if my English looks weird.