public void searchUser(String name) throws IOException //outputs info on member searched for
   {
      br = new BufferedReader(new FileReader("output.txt"));
      boolean user = false;
      String line = br.readLine(), line2 = "";;
           
      while(line != null)
      {  
         String[] parts = line.split(" ");
         if(name.equals(parts[0]))
         {
            System.out.println("Username: " + parts[0]);
            System.out.println("Age: " + parts[3]);
            System.out.println("Gender: " + parts[4]);
            System.out.println("Battles won: " + parts[5]);
            System.out.println("Battles lost: " + parts[6]);
            System.out.println("Current total challenges: " + parts[7]);
            System.out.println("Email: " + parts[2]);
            System.out.println();
            line = null;
            user = true;
         }
         else
         {
            line = br.readLine();  
         }
      }
      
      if(user == false)
      {
         System.out.println("Username not found.");
      }
   }