In the code:
inF = open(input("Enter Filename: "),'r') import inF inF
Is there any way I can import the filename that the user inputs?
As far as I know, you can't. I'm interested to know why you want to do this? What are you trying to make?
@InvisibleOne I was mostly just wondering, but I also wanted to make a program that could be used to seamlessly launch other programs from it.
Hmm, sounds interesting @ANDREWVOSS
@InvisibleOne I finished it
Nice @ANDREWVOSS
@InvisibleOne I think I'll post it in Share
@ANDREWVOSS https://repl.it/talk/share/Python-File-Opener/54773
How can I open a file based on user input?
In the code:
Is there any way I can import the filename that the user inputs?
As far as I know, you can't. I'm interested to know why you want to do this? What are you trying to make?
@InvisibleOne I was mostly just wondering, but I also wanted to make a program that could be used to seamlessly launch other programs from it.
Hmm, sounds interesting @ANDREWVOSS
@InvisibleOne I finished it
Nice @ANDREWVOSS
@InvisibleOne I think I'll post it in Share
@ANDREWVOSS https://repl.it/talk/share/Python-File-Opener/54773