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

3 lines
46 B
Python
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
with open(filename) as f:
data = f.read()