Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AnsiChar sjl[50],
- anj[50];
- int i = 1;
- FILE *f;
- f = fopen("databaza.txt", "r");
- while ( fscanf(f, "%s", sjl) != EOF ) {
- StringGrid2->Cells[0][i] = sjl;
- fscanf(f, "%s", anj);
- StringGrid2->Cells[1][i] = anj;
- i++;
- StringGrid2->RowCount++;
- }
- fclose(f);
Advertisement
Add Comment
Please, Sign In to add comment