Member Avatar for nssltd

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

...

Member Avatar for nssltd

I have already solved this thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.