No such file or directory?
<p>For some reason despite having the file in the main and in the same directory, I keep getting the no such file error. Any help is appreciated. </p>

<pre><code>    import time
    def firstQues():

            print('"TT(Announcing): HONING IN FROM SU CASA CUIDAD, (Their hometown)"')
            time.sleep(3)
            print('"VEN EL UN.....(Comes the one.....)"')
            time.sleep(2)
            print('"EL SOLO......(The ONLY.....)"')
            time.sleep(3)
            print('"CampeÃ³n NOVATO (NEWBIE CHAMP)"')
            print()


            text_file = open("Questions1.txt", "r")
            wholefile = text_file.readline()
            for wholefile in open("Questions1.txt"):
                    print(wholefile)
                    return wholefile
                    return text_file

    def main():
            firstQues()
            text_file = open("Questions1.txt", "r")
    main()
</code></pre>

<p>You cannot open a file in read mode that doesn't exist. Make sure you create a file in a current working directory. Your program executed successfully.</p>

<p><a href="http://i.stack.imgur.com/1gqs3.png" rel="nofollow"><img src="http://i.stack.imgur.com/1gqs3.png" alt="enter image description here"></a></p>

python python-3.x