private void closeTextOutFile()
{

    try{

        if (out != null) {out.close();}
        if (outputStreamWriter != null) {outputStreamWriter.close();}
        if (fileOutputStream != null) {fileOutputStream.close();}

    }
    catch(IOException e){

        //ignore error while trying to close the file
        //could log the error message in the future

    }

}//end of ADataClass::closeTextOutFile