public void editAcc() throws FileNotFoundException, IOException
{
    System.out.println("Which Account do you want to edit? (Account Number)");
    Scanner impor = new Scanner(System.in);
    String editLine = "hi";
    int ach = impor.nextInt();
    String path = accDir+ach+".txt";
    String newline = System.getProperty("line.separator");
    
            
            FileReader fr1 = new FileReader(path);
            BufferedReader br1 = new BufferedReader(fr1);
            

            int numberOfLines = 3;
            String[] textData = new String[numberOfLines];
            for (int b = 0; b < numberOfLines; b++) {        
            textData[b] = br1.readLine(); }
            Scanner in = new Scanner(System.in);
            System.out.println("-----------------------");
            System.out.println(textData[0]);
            System.out.println(textData[1]);
            System.out.println(textData[2]);
            System.out.println("-----------------------");
            br1.close();
            FileWriter fw = new FileWriter(path);
            BufferedWriter bw = new BufferedWriter(fw);
            System.out.println("What do you want to edit?");
            System.out.println("type 1 for name");
            System.out.println("type 2 for Address");
            System.out.println("type 3 for Occupation");
            String inc = in.nextLine();
            System.out.println("What would you like to change it to?");
            String editMade = in.nextLine();
            switch (inc) {
            case "1":
                editLine = editMade + newline + textData[1] + newline + textData[2];
                break;
            case "2":
                editLine = textData[0] + newline + editMade + newline + textData[2];
                break;
            case "3":
                editLine = textData[0] + newline + textData[1] + newline + editMade;
                break;
        }
                  
           

            
            br1.close();
            
            bw.write(editLine);
            bw.flush();
            bw.close();
            FileReader fr = new FileReader(path);
            BufferedReader br = new BufferedReader(fr);
            for (int b = 0; b < numberOfLines; b++) {
            textData[b] = br.readLine(); }
            System.out.println("-----------------------");
            System.out.println(textData[0]);
            System.out.println(textData[1]);
            System.out.println(textData[2]);
            System.out.println("-----------------------");
   accMng();
}