Python membaca file teks ke dalam string

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