GamerSK

nejake subory

Apr 1st, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. AnsiChar sjl[50],
  2.              anj[50];
  3.     int i = 1;
  4.     FILE *f;
  5.     f = fopen("databaza.txt", "r");
  6.     while ( fscanf(f, "%s", sjl) != EOF ) {
  7.         StringGrid2->Cells[0][i] = sjl;
  8.         fscanf(f, "%s", anj);
  9.         StringGrid2->Cells[1][i] = anj;
  10.         i++;
  11.         StringGrid2->RowCount++;
  12.     }
  13.     fclose(f);
Advertisement
Add Comment
Please, Sign In to add comment