Jan-16-2020, 12:02 PM
Hi,
I want to read all csv files and read each file and capture last line form each file.
I use the below code, but I struck.
I want to read all csv files and read each file and capture last line form each file.
I use the below code, but I struck.
import os
from glob import glob
PATH = "D:\data\project\*\*\InputFiles"
EXT = "*.csv"
all_csv_files = [file
for path, subdir, files in os.walk(PATH)
for file in glob(os.path.join(path, EXT))]
print(all_csv_files)
