finding a line that contains… etc
<p>Ok, well i'm basically trying to find a certain line withing "Users.txt"</p>

<p>Heres my code so far.</p>

<pre><code>if (ok == "b" || ok == "B")
    {
    using (StreamWriter w = File.AppendText("Users.txt"))
        {
            //Test
            Out.WriteLine("Please state the username");
            string user = Console.ReadLine();
            Out.WriteLine("Checking..");
            if (w.Equals(user))
            {
                Out.WriteLine("Username is taken");
            }
            Thread.Sleep(pause);
            Out.WriteLine("Please state the password for the user");
            string pass = Console.ReadLine();
            Logger(user, pass, w);
            // Close the writer and underlying file.
            w.Close();
            Out.WriteLine("Checking..");
            Out.WriteBlank();
            Thread.Sleep(pause);
            Out.WriteLine("Anything else Mr." + Environment.UserName + " ?");
        }
            string choice = Console.ReadLine();

            if (choice == "no")
            {
                Boot();
            }
            if (choice == "yes")
            {
                Console.Clear();
                Console.Title = "Administrator Panel";
                Panel();
            }
        }
</code></pre>

<p>want it to see if the "user" is taken, then stop them from executing the process.</p>

<p>Thanks for the help.</p>
