Python -Datei zur Zeichenfolge

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