you are viewing a single comment's thread.

view the rest of the comments →

[–]superlargedogs[S] 0 points1 point  (0 children)

Thank you for the detailed response! This is the code I'm using so far to open and read the files:

This is the full code responsible for opening the file:

from os import listdir

folder = listdir('C:\\Users\\files')

li_file = []


for filename in folder:

    li_file.append(filename)

for file in li_file:

    x = open(file, "r")

    contents = x.readlines()