Error Reading From A file Inside A Directory
<p>I am trying to read files, inside a folder, reason is the number of files inside the folder is not fixed, but if there are 3 text folder, I have to read all the 3 files if 4 all the 4 text files.</p>

<p>Here is the code I'm trying to use, but comes up with an IOError:</p>

<pre><code>for i in os.listdir("./RecordFolder"):
    print i
</code></pre>

<p>Output is:
    record1.txt
    record2.txt</p>

<p>Now the problem is reading the files:</p>

<pre><code>for files in os.listdir("./RecordFolder"):
    filecontent = open(files).readlines()
    for lines in filecontent:
    print lines
</code></pre>

<p>Output:</p>

<pre><code>IOError: [Errno 2] No such file or directory: 'record.txt'
</code></pre>

<p>Need some help here, thanks </p>
