'Requires:
nothing
Returns:
nothing
Logic:
Create a file within the output directory.
Read one file at a time. Output line to the newly-created file.'

def __output_to_dir_func(self):

    base_name = os.path.basename(self.__orig_file)
    (base_name, ext) = os.path.splitext(base_name)
    output_file = os.path.join(self.__output_dir, ('%s.xml' % base_name))
    if self.__out_file:
        output_file = os.path.join(self.__output_dir, self.__out_file)
    user_response = 'o'
    if (os.path.isfile(output_file) and (not self.__no_ask)):
        msg = ('Do    you    want    to    overwrite    %s?\n' % output_file)
        msg += 'Type    "o"    to    overwrite.\nType    any    other    key    to    print    to    standard    output.\n'
        sys.stderr.write(msg)
        user_response = raw_input()
    if (user_response == 'o'):
        with open(self.__file, 'r') as read_obj:
            with open(self.output_file, 'w') as write_obj:
                for line in read_obj:
                    write_obj.write(line)
    else:
        self.__output_to_standard_func()
