본문 바로가기
삽질/Delphi

[Delphi] TStringStream을 TStringList에 담기

by 푸딩s 2011. 4. 5.
728x90
반응형



var
  StringStream: TStringStream;
  StringList: TStringList;
begin

  StringList:= TStringList.Create;
  StringStream := TStringStream.Create('');
  StringStream.Position := 0; // Reset to the beginning of the stream

  IdHTTP.Get('주소', StringStream);
  StringList.Text := StringStream.DataString;

end;

728x90
반응형

댓글