| 
				  
 Можно так... 
	Код: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |   procedureSaveStringGrid(StringGrid: TStringGrid; constFileName: TFileName);
  var
    f:    TextFile;
    i, k: Integer;
  begin
    AssignFile(f, FileName);
    Rewrite(f);
    withStringGrid do
    begin
      
     Writeln(f, ColCount);
      Writeln(f, RowCount);
      
     fori := 0toColCount - 1do
        fork := 0toRowCount - 1do
          Writeln(F, Cells[i, k]);
    end;
    CloseFile(F);
  end;
    
   procedureLoadStringGrid(StringGrid: TStringGrid; constFileName: TFileName);
  var
    f:          TextFile;
    iTmp, i, k: Integer;
    strTemp:    String;
  begin
    AssignFile(f, FileName);
    Reset(f);
    withStringGrid do
    begin
      
     Readln(f, iTmp);
      ColCount := iTmp;
      
     Readln(f, iTmp);
      RowCount := iTmp;
      
     fori := 0toColCount - 1do
        fork := 0toRowCount - 1do
        begin
          Readln(f, strTemp);
          Cells[i, k] := strTemp;
        end;
    end;
    CloseFile(f);
  end;
      
   procedureTForm1.Button1Click(Sender: TObject);
  begin
    SaveStringGrid(StringGrid1, 'c:\temp.txt');
  end;
    
   procedureTForm1.Button2Click(Sender: TObject);
  begin
    LoadStringGrid(StringGrid1, 'c:\temp.txt');
  end;
 | 
 |