@SuppressWarnings("deprecation")
    public static void readRAF() throws IOException
    {
      String fileName = "/Users/Abhi/Desktop/Database";     
      
      
        ObjectInputStream inputStream = null;
        try{
            inputStream = new ObjectInputStream(new FileInputStream(fileName));
        }catch(IOException e){
            System.out.println("There was a problem opening the file: " + e);
            System.exit(0);
        }
        
            //Create new blank objects to store the data in.
try{      
    while(true)
            {
                setSubjectarray((char[]) inputStream.readObject());
                setDescarray((char[])inputStream.readObject());
                setDifficultyarray((char[])inputStream.readObject());
                setTime(inputStream.read());
                inputStream.close();
                }
            
            
        }catch(Exception f){
            System.out.println("There was an issue reading from the file: " + f);
            System.exit(0);
        }
        


        }