Does the file exist?
Does the user has enough rights to the file?
Are there any error messages appearing?
Can you post the whole code, maybe then we can see what's getting wrong.