
06.02.2011, 02:24
|
 |
Гуру
|
|
Регистрация: 09.03.2009
Адрес: На курорте, из окна вижу теплое Баренцево море. Бррр.
Сообщения: 4,723
Репутация: 52347
|
|
Так попробуйте:
Код:
Var
Cells: TStringList;
T: TextFile;
S: String;
C,R: Integer;
begin
Cells := TStringList.Create;
AssignFile(T, 'UserData.txt');
Reset(T);
R := 0;
while not Eof(T)
do begin
ReadLn(T, S);
Cells.Text := StringReplace(S,#32,#13#10,[rfReplaceAll]);
for C := 0 to Cells.Count - 1
do StringGrid1.Cells[R,C] := Cells.Strings[C];
Inc(R);
end;
CloseFile(T);
end.
__________________
Жизнь такова какова она есть и больше никакова.
Помогаю за спасибо.
|