/// <summary>
        /// Attempts to delete the specified log file.
        /// <param name="documentNumber">Specifies the document number corresponding to the
        /// tax engine log.</param>
        /// </summary>
        public static void DeleteLogForDocumentNumber(string documentNumber)
        {
            string fullPath = TaxLoggingHelper.BuildFilePathForLog(documentNumber);

            if (TaxLoggingHelper.LogExistsForDocumentNumber(documentNumber))
            {
                System.IO.File.Delete(fullPath);
            }
        }
        /// <summary>
        /// Provides access to the specified STE log generated by the tax engine.
        /// </summary>
        /// <param name="documentNumber">Specifies the document number corresponding to the
        /// tax engine log.</param>
        /// <returns>A <c>StreamReader</c> instance for the specified STE log file</returns>
        public static StreamReader GetTaxLogForPayStatementDocumentNumber(string documentNumber)
        {
            string       fullPath = TaxLoggingHelper.BuildFilePathForLog(documentNumber);
            StreamReader reader;

            try
            {
                reader = new StreamReader(fullPath);
            }
            catch
            {
                // Return a null reader if there is any failure in opening the file
                reader = null;
            }

            return(reader);
        }
        /// <summary>
        /// Determines if a log file exists for the specified pay statement.
        /// </summary>
        /// <param name="documentNumber">Specifies the document number corresponding to the
        /// tax engine log.</param>
        /// <returns>True if the specified log file exists.</returns>
        public static bool LogExistsForDocumentNumber(string documentNumber)
        {
            string fullPath = TaxLoggingHelper.BuildFilePathForLog(documentNumber);

            return(System.IO.File.Exists(fullPath));
        }