How to open a file in python 3 -
i want open it not read it.
tried this:
x = open("filename", "r") abc = x.read() x.close()
the above code read file, did not open file.
file "bat" file
open
creates stream of data associated file. not initiate file viewing software.
os.startfile('path/to/file.ext') # opens file in respective program
Comments
Post a Comment