public void createAcc() throws IOException
{
     int cNum = numOfAccounts;
                    Scanner in = new Scanner(System.in);          
                    System.out.println("What is your Full Name?");
                    String n = in.nextLine();
                    System.out.println("What is your address?");
                    String a = in.nextLine();
                    System.out.println("What is your your Occupation?");
                    String p = in.nextLine();
                    
                    File f = new File(accDir+cNum);
                    do { cNum ++;} while(f.exists());
                    writeToFile(cNum, n, "acc");
                    writeToFile(cNum, a, "acc");
                    writeToFile(cNum, p, "acc");
                    writeToFile(cNum , "0", "acc");
                    writeToFile(cNum, "0", "acc");        
                    System.out.println("Your account has been created with the number "+cNum+".");
                    System.out.println("-----------------------");
                    numOfAccounts++;
                    accMng();
}