/// <summary>
 /// if already exists an acc
 /// </summary>
 /// <returns>the haveacc</returns>
 public bool Haveacc()
 {
     if (File.Exists(this.accname + ".txt") && (this.passwd + "\r").Equals((rw = new DataRead_Write(this.accname + ".txt", this.passwd)).Passwd))
     {
         this.chars = rw.Readed;
         return(true);
     }
     else if (File.Exists(this.accname + ".txt") && !(this.passwd + "\r").Equals(rw.Passwd))
     {
         throw new IncorrectAcc_username();
     }
     else
     {
         return(false);
     }
 }
 /// <summary>
 /// save account info to txt file
 /// </summary>
 public void Save()
 {
     rw = new DataRead_Write(accname + ".txt", chars, accname, passwd);
 }