أحاول استخدام fseek في MSVS 6 لكن باستخدامه الـ file pointer لا يبدو أنه يتغير
#include <stdio.h>
FILE *stream;
void main( void )
{
long position;
if( (stream = fopen( "ftell.c", "ab" )) != NULL )
{
position = ftell( stream );
printf( "%x\n", position );
fseek(stream, 0L, SEEK_END);
position = ftell( stream );
printf( "%x\n", position );
fclose( stream );
}
}في الحالتين يكون الخرج 0 والمطلوب هو وضع المؤشر في نهاية الملف. (ملاحظة: "ab" حتماً لا يمكن استخدام سواها)
