Python membaca file ke variabel

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