def open_file(file):
    """Open a file and read the content
    """
    if not file:
        return ''
    content = ''
    try:
        with open(file, 'r+', encoding="utf-8") as f:
            content = f.read()
    except Exception as err:
        print('Something wrong happened while trying to open the file ' + file)
    return content