Python lesen Datei zu Variablen

with open('data.txt', 'r') as file:
    data = file.read().replace('\n', '')
Blushing Bat