If you are opening the file using "w" that means its created newly and so it does not have a position you are specifying because fseek cannot put a pointer beyond EOF.

Last edited by shabbir; 4Dec2007 at 11:56.. Reason: Typo