public static Member_details readarray()
    {

        Member_details newuser1 = null;
    {
         try {
             
             RandomAccessFile raf = new RandomAccessFile(filename, "rw");
             
             
           
raflength = (int)((raf.length())/167);

for(int i=0; i<raflength; i++)
{
raf.seek(167*i);

  Member_details_add.ID = raf.read();
  Member_details_add.username = raf.readUTF();
  Member_details_add.password = raf.readUTF();
  Member_details_add.subject1 = raf.readUTF();
  Member_details_add.subject2 = raf.readUTF();
  Member_details_add.subject3 = raf.readUTF();
  Member_details_add.subject4 = raf.readUTF();
  Member_details_add.subject5 = raf.readUTF();
  Member_details_add.subject6 = raf.readUTF();
  Member_details_add.subject7 = raf.readUTF();
  Member_details_add.delete1 = raf.read();
  
  Member_details newmem  = new Member_details(ID, username, password, subject1, subject2, subject3, subject4, subject5, subject6, subject7, delete1);
  
                   Member_details_array.addMember(newmem, i);
  
}

} catch (EOFException ex) { //This exception will be caught when EOF is reached
           
} catch (FileNotFoundException e) {
        e.printStackTrace();
} catch (IOException e) {
        e.printStackTrace();
} 
         
  
}
     return newuser1;
        
        
    }