Python Forum
Phyton Opening files on windows C: pc
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Phyton Opening files on windows C: pc
#2
For start, Windows has Users folder (plural), not User. Also is user really hp?

So, It should be
r'C:\Users\<user name>\Desktop\Poem.txt'
or
'C:/Users/<user name>/Desktop/Poem.txt'
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Phyton Opening files on windows C: pc - by EddieG - Mar-29-2023, 11:43 AM
RE: Phyton Opening files on windows C: pc - by buran - Mar-29-2023, 12:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rename files in a folder named using windows explorer hitoxman 3 843 Aug-02-2023, 04:08 PM
Last Post: deanhystad
Exclamation Phyton Metin2 Game Left Click not working. Help anonym35 0 1,600 Feb-02-2022, 07:01 PM
Last Post: anonym35
  Copying files from a remote Windows station tester_V 11 7,084 Jul-17-2021, 02:19 AM
Last Post: tester_V
  opening files and output of parsing leodavinci1990 4 2,644 Oct-12-2020, 06:52 AM
Last Post: bowlofred
  Opening and closing Mac applications and files Nickd12 5 5,920 Sep-05-2020, 04:39 AM
Last Post: perfringo
  PYHTON not opening files profficial 11 13,901 Feb-15-2020, 09:06 AM
Last Post: bharathendra
  Phyton code to load a comma separated csv file in to a dict and then in to a dB mrsenorchuck 2 2,730 Nov-29-2019, 10:59 AM
Last Post: mrsenorchuck
  Code works in IDLE, appears to work in CMD, but won't produce files in CMD/Windows ChrisPy33 3 3,322 Jun-12-2019, 05:56 AM
Last Post: ChrisPy33
  opening a file from a windows desktop folder- error opening file Charan007 1 3,039 Dec-06-2018, 11:50 AM
Last Post: buran
  Python files made on linux don't work on windows sylas 2 3,345 Oct-10-2018, 05:34 AM
Last Post: sylas

Forum Jump:

User Panel Messages

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