11 lines
236 B
Python
11 lines
236 B
Python
import csv
|
|
|
|
def open_file(file_path):
|
|
content = []
|
|
with open(file_path, mode='r', encoding='utf-8') as csvfile:
|
|
data = csv.DictReader(csvfile)
|
|
for row in data:
|
|
content.append(row)
|
|
|
|
return content
|