11 lines
286 B
Python
11 lines
286 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
# This function will read a file path and return a data object.
|
||
|
# It does no other data manimpulation.
|
||
|
def read_file(file_path):
|
||
|
# Open a file in read mode
|
||
|
with open(file_path, "r") as file:
|
||
|
data = file.read()
|
||
|
print(data)
|
||
|
return data
|