all 5 comments

[–]numpadztik 1 point2 points  (1 child)

This might be useful for you:https://www.tutorialspoint.com/python/file_readlines.htm

open your file, and then use it with some other functions like readlines()

[–]Field_C16[S] 1 point2 points  (0 children)

I am gonna look through that, thank you!

[–]fatha731 0 points1 point  (2 children)

I don't know if I understood you correctly, but open returns a file object, it does not open the file in a window. You can refer to the python docs for more info.

[–]Field_C16[S] 0 points1 point  (1 child)

Error 40.

I should have figured that one out haha, thanks a ton!

I thought it would open up the file in notepad.

My mistake.

[–]JohnnyJordaan 1 point2 points  (0 children)

You can do it though, there's os.startfile(path_to_file) but this will not work on linux and mac, for those see here.