private boolean OpenFile()
    {
        //read status
        boolean status = false;
        
        try
        {
            //open the file output stream
            FileOutputStream outStream = new FileOutputStream(System.getProperty("user.dir")+"\\"+fileName);
            //set the data stream for the file
            out = new DataOutputStream(outStream);
            //open write stream to file
            br = new BufferedWriter(new OutputStreamWriter(out));
            
        }
        catch(Exception e){
            //get the error message
            System.out.println("Error opening file: " + e.getMessage());
            status = false;
        }
                
        //return status of file read
        return status;
    }