View Single Post
Staro 13.03.2011., 19:20   #2
burki
Umalo Premium
 
Datum registracije: Jan 2009
Lokacija: localhost
Postovi: 61
Probaj ovako:
Code:
    char a = 0;
    int i = 0, j = 0;
    char polje[100][100];
    FILE *f = fopen("myfile.txt", "r");
    while (!feof(f))    
    {
        if(a == '\n')j++;
        a = polje[i][j] = getc(f);
        i++;
    }
burki je offline   Reply With Quote