I have a textfile of numbers written in words, with spaces between like..
zero three five two one .. etc there are 3018 words in total.
This is my code:
#include <stdio.h>
int main(void)
{
    int i = 0;
    int d = 0;
    int j = 0;
    char array[9054][5];
    char hi[9054];
    FILE *in_file;
    in_file = fopen("message.txt", "r");
    while (!feof(in_file))
    {
        fscanf(in_file, "%s", array[i]); 
        i++;
    }
    printf(array[9049]);
    while (1);
        return 0;
}
so the 9049th worth in my textfile is the number three.. but when I run this script, it prints "threethreezero"instead?? i thought the fscanf ignored whitespace (spaces) so why does accept another three and zero into this string?
 
     
     
    