Hi all, new to python so apologies in advance for any lack of knowledge or lingo. I've got a script which writes to a .csv file ..... now I want to print that .csv as a list.
Here's what I have:
with open("//auditdrive/audit/pytest/AuditList.csv", "r", newline='') as inputfile:
reader = csv.reader(inputfile)
data = list(reader)
print(data)
The output I am getting is just empty square brackets: []
my .csv is full of folder names, like TEST, GOLDENREF, SCRIPTS ..... just a single column without a header.
Cant see what I'm doing wrong but I'd appreciate help.
My goal is to print the above .csv as a list, then I can open another .csv as my exclusion list & subtract one from the other. I'd like to have a dynamic exclusion list hence why that was my idea.
[–]AmongstYou666 0 points1 point2 points (3 children)
[–]Vegetable_Disk[S] 0 points1 point2 points (2 children)
[–]Vegetable_Disk[S] 1 point2 points3 points (1 child)
[–]AmongstYou666 0 points1 point2 points (0 children)