Python read 100's of text files
<p>I have some data in simplejson format in txt files, which I read using:</p>

<pre><code>with open("my_file.txt") as f: any_variable = simplejson.load(f)
</code></pre>

<p>It works fine, no problems. However, I now have 100's of such text files (some of which, I dont know the names for!) to read from and I was wondering, if there was a pythonic way to read all these files and assign them to say: any_variable1 to any_variableN. I dont really care in what order they are read in.</p>

<p>Obviously, a simple way would be to loop and store results, yet, I was wondering if there was a pythonic way here.</p>
