def get_file_text(path):
    """Returns file contents as a single string"""

    contents = ""

    with open(path) as open_file:
        contents = ''.join(line.rstrip() for line in open_file)

    return contents