Python Forum
Reading CSV From another directory
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading CSV From another directory
#1
Hello,

I want to read a CSV using the CSV module from a file in another directory. Would you have any idea how I do that?

Thanks,
Jamie
while dad_has_cigs == True:
    happiness = True
    if dad_has_cigs == False:
    print("Dad come home!")
    happiness = not happiness
    break
Reply
#2
If you don't specify a path it looks for the file in the current working directory, same as for any kind of file.
jamesaarr likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading a directory and outputting as sound loungeroom 0 1,235 Jul-30-2021, 09:26 PM
Last Post: loungeroom
  Error With Reading Files In Directory And Calculating Values chascp 2 2,454 Feb-15-2020, 01:57 PM
Last Post: chascp
  reading directory paths from file to list malonn 6 4,112 Oct-26-2018, 11:19 PM
Last Post: malonn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020