reading a file in bge

file handling using simple fucntions like open(filename,‘r’) works fine in python32 but the sme things doesn ot work in blender…

f=open(‘C.txt’,‘r’)
y=f.readlines()
f.close()

error :
no such file or directory ‘C.txt’

Try the absolute path, you can do this easily in blender with bge.logic.expandPath("//C.txt").