'Read the file at C{path} on the device and write it to outfile.
@param outfile: file object like C{sys.stdout} or the result of an C{open} call'

def get_file(self, path, outfile, end_session=True):

    if self.verbose:
        logger().info(("%s.get_file():    exporting    '%s'" % (self.__class__.__name__, path)))
    try:
        outfile.write(open(self.cached_books[path]['lib_book'].location().path).read())
    except:
        logger().info('    unable    to    extract    books    from    iDevices')
        logger().info('    deleting    empty    ', outfile.name)
        outfile.close()
        os.remove(outfile.name)
        raise UserFeedback('Unable    to    extract    books    from    iDevices', details=None, level=UserFeedback.WARN)
