- Регистрация
- 21.08.2013
- Сообщения
- 249
- Благодарностей
- 12
- Баллы
- 18
I am trying to get the password based on the username from a text file containing multiple user|pass lines.
I was trying to accomplish that using the following code but I got this error:
This works great in visual studio so I can only assume that Code Creator's C# version is outdated. Is that the case?
I was trying to accomplish that using the following code but I got this error:
Get a list of local variables The method or operation is not implemented
Код:
string filePath = project.Directory + @"logins.txt";
string pass = File.ReadLines(filePath)
.Where(fileLine => fileLine.StartsWith(profileEmail + "|"))
.Select(fileLine => fileLine.Split('|')[1])
.FirstOrDefault();