I want to read a (basically a text file) file without an extension in Python 2.6. I have tried the following codes with the following errors..

```
for infile in glob.glob(os.path.join(path + "Bookmarks",'*')):
    review_file = open(infile,'r').read()
    print review_file

```

-> global name glob is not defined

```
f = open(path, "r")
text = f.readlines()
print text

```

-> Prints "x00\x00\x00\x00\x00\" etc, and this is not what is inside of this file.

Edit: -> The conents of the file, directly, is what I want, for example if the file had "023492034blackriver0brydonmccluskey" in it, it would (as of now) extract it with a bunch of binary values, whereas I only want the exacy contents. How would I do so?