0

Hello!

I have been working on a `Advanced log in` project. And i was going to store pass words on a text file. i have found some code on the web but their is one problem. I don't know what to convert it to!

public void Getpasswd()
        {
          if (File.Exists("NxPasswds.txt"))
          {
            StreamReader sr = new StreamReader("NxPasswds.txt");
            string score = sr.ReadLine();
            getwords = Convert.(pass);
            sr.Close();
     
          }
        }

So the problem is here getwords = Convert.(pass); I dont know what to put after Convert. . I have some idea's though, could it be; .ToString(); or perhaps; .ToChar();?

Any help is much appreciated

NSSLTD

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by nssltd
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.