13.03.2011., 19:20
|
#2
|
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++;
}
|
|
|