can not get key and value from dict python in a directory
<p>I faced a problem when I tried to get the key and value from 
my file <code>wahbilogintest.py</code>, which contains a dictionary <code>kids{}</code>. </p>

<p>Can you please help me how I will search after my file <code>wahbilogintest.py</code> in directory <code>C:/webbplats/mydata</code> and iterate over in the file to get/bring key and value?</p>

<p>My source code</p>

<pre><code>class visafilerIkatalogen :
    import os  
    folder = 'c:/webbplats/mydata/' 
    dinfil = raw_input("Enter your userprofile med prefix.txt: ")
    #dindictionary = raw_input("Enter your dictionary name: ")
    loginReadProfile = open(folder+str(dinfil),'r')
    for key, value in dinfil.iteritems():
            print 'Username is: ',key
            print 'value is: ',value

    print loginReadProfile.readlines()
    loginReadProfile.close()


Myobj12 = visafilerIkatalogen()
</code></pre>
