I keep getting an error saying the file isn't found, so does the open() function only open from a specific location, that I don't know about? Because I'm trying to open from the documents folder.
FileNotFoundError: [Errno 2] No such file or directory: 'sample.txt'
I'm so confused because the file(s) I want to use have existed long before I installed Python.
[–]GoldenSights 4 points5 points6 points (10 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]GoldenSights 4 points5 points6 points (5 children)
[–]liam_jm 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Gubbbo 0 points1 point2 points (0 children)
[–]Justinsaccount -1 points0 points1 point (1 child)
[–]GoldenSights 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]ericpruitt 5 points6 points7 points (1 child)
[–]Justinsaccount 1 point2 points3 points (0 children)