Where do you save a notepad file so python can open it in the program?
<p>My program can't locate the file. How do I save the text file in the python directory on Windows? I've looked through other similar questions but cant find a basic guide to save into the same directory. Thanks for the help</p>

<pre><code>user_input = input("file name")
fh=open(user_input,"r",encoding="utf-8")
</code></pre>

<p>If i understood your question right, all you have to do is search for the python directory, press the Windows key and type the name of a folder, and the folder will show up among the Start menu search results. Save the notepad file in that directory. Hopefully that helps you.</p>

python file