RosettaCodeData/Task/Read-entire-file/Python/read-entire-file-3.py

3 lines
46 B
Python

with open(filename) as f:
data = f.read()