Python Forum
How to write a code to open and read text file by clicking on the "text file"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write a code to open and read text file by clicking on the "text file"
#5
DeaD_EyE provided one option, but also pointed the drawback
one alternative would be to add entry (shortcut to your python script e.g c:\python37\python.exe c:\path_to\yourscript.py) in the Send To right-click menu. So you can right click on the text file and select SendTo->your python script.

https://www.howtogeek.com/howto/windows-...d-to-menu/
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
RE: How to write a code to open and read text file by clicking on the "text file" - by buran - Jul-06-2018, 06:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  speed up getting embedding from bert model for large set of text veda 1 103 10 hours ago
Last Post: Pedroski55
  Connecting to Remote Server to read contents of a file ChaitanyaSharma 1 314 May-03-2024, 07:23 AM
Last Post: Pedroski55
  UART write binary code trix 3 397 Apr-28-2024, 04:57 PM
Last Post: deanhystad
  How to Randomly Print a Quote From a Text File When User Types a Command on Main Menu BillKochman 13 1,256 Apr-24-2024, 05:47 AM
Last Post: Bronjer
  What does .flush do? How can I change this to write to the file? Pedroski55 3 360 Apr-22-2024, 01:15 PM
Last Post: snippsat
Brick Number stored as text with openpyxl CAD79 2 629 Apr-17-2024, 10:17 AM
Last Post: CAD79
  Sending a text from Python sawtooth500 2 300 Apr-14-2024, 01:56 PM
Last Post: sawtooth500
  write code that resides in parent directory franklin97355 3 521 Apr-14-2024, 02:03 AM
Last Post: franklin97355
  very newbie problem on text file zapad 2 333 Apr-12-2024, 06:50 PM
Last Post: zapad
  help with scrolling text on RGB Matrix Foutsy 3 431 Apr-09-2024, 09:00 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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