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"
#1
I'm a windows user. The notepad is the default program for.txt files. I need to write a code to open and read a text file by clicking on the text file when the python file has been selected as the default program for the text files.How to do that

python v3.7
Reply


Messages In This Thread
How to write a code to open and read text file by clicking on the "text file" - by kavindu - Jul-03-2018, 07:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connecting to Remote Server to read contents of a file ChaitanyaSharma 1 168 May-03-2024, 07:23 AM
Last Post: Pedroski55
  UART write binary code trix 3 271 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,053 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 277 Apr-22-2024, 01:15 PM
Last Post: snippsat
Brick Number stored as text with openpyxl CAD79 2 508 Apr-17-2024, 10:17 AM
Last Post: CAD79
  Sending a text from Python sawtooth500 2 226 Apr-14-2024, 01:56 PM
Last Post: sawtooth500
  write code that resides in parent directory franklin97355 3 453 Apr-14-2024, 02:03 AM
Last Post: franklin97355
  very newbie problem on text file zapad 2 270 Apr-12-2024, 06:50 PM
Last Post: zapad
  help with scrolling text on RGB Matrix Foutsy 3 336 Apr-09-2024, 09:00 PM
Last Post: deanhystad
  Text parsing Arik 5 453 Mar-11-2024, 03:30 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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