0

Just learned that Python can open files such as *.txt and more. Isn't that amazing?

I want to be able to read a text (*.txt) file. This is a dictionary of a game that is on desktop. I don't really know the path of the game.

Is there a way that to determine the path of that game on desktop?

anothernode
  • 5,100
  • 13
  • 43
  • 62
Duke Ben
  • 21
  • 4
  • 3
    Sorry, I don't understand the question. What does *"the file is in dictionary of a game"* mean? Is your problem finding the location of the file, or is your problem opening the file? – Aran-Fey May 08 '18 at 09:12
  • @Aran-Fey , Sorry , That was my bad sir, My question is "How could I find a path of a game ( Or anything ) Thats on desktop (Shortcut of it Ofcourse). – Duke Ben May 08 '18 at 09:16
  • 1
    Possible duplicate of [Reading the target of a .lnk file in Python?](https://stackoverflow.com/questions/397125/reading-the-target-of-a-lnk-file-in-python) – Edwin van Mierlo May 08 '18 at 09:17
  • it means that you want to find a path of original file from its shortcut or find out what is the Desktop path ? – Mehrdad Pedramfar May 08 '18 at 13:05

0 Answers0