Modified the ftell method to use seek interface call.