research-rainfallradar/aimodel/src/lib/io/readfile.py

7 lines
124 B
Python
Raw Normal View History

import io
def readfile(filepath):
handle = io.open(filepath, "r")
content = handle.read()
handle.close()
return content