You need to prefix each file name with path
before you open the file.
See the documentation for os.walk
.
import os
for path, dirs, files in os.walk('FDF\FDF'):
for file in files:
print file
filepath = os.path.join(path, file)
print filepath
fdf = open(filepath, "r")