public boolean ReadFile()
    {
        //read status
        boolean status = false;
        
        try
        {
            //open the file input stream
            FileInputStream inStream = new FileInputStream(System.getProperty("user.dir")+"\\"+fileName);
            //get the data stream for the file
            DataInputStream in = new DataInputStream(inStream);
            //read data from the file
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
                                  
            //iterate the file line by line
            while((data = br.readLine()) != null)
            {
                
                data1 = data;
                //get each option
                dataPieces = data.split("-");
                //read was successful
                status = true;
            }
            
            //close input
            in.close();
        }
        catch(Exception e){
            //get the error message
            System.out.println("Error: " + e.getMessage());
            status = false;
        }
                
        //return status of file read
        return status;
    }