You are trying to use fseek without opening the file.