#include <stdio.h>

int main(void)
{
    _int64 dest[30000]={0};
    int index=0;
    char tmp;
    FILE* stream;
    stream = fopen("d:\\test.txt", "rb");
    if( stream == NULL )
        printf( "The file test.txt was not opened\n" );
    else
    {
        fseek( stream, 0, 0);
        while(!feof(stream))
        {
        rep:
            tmp=fgetc(stream);
            if(tmp==0x20 || tmp==0xD || tmp==0xA) goto rep;
            fseek( stream, -1, 1);
            fscanf( stream, "%ld", &dest[index]);
            printf("%ld\n",dest[index]);
            index++;
        }
    }
    return 0;
}