S shuoshuo2002 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-11 #1 请问如何将Stream流转换为字符串String? 最好提供函数!
Z zxb200 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-12 #2 buf1:array [0..225] of char; stream.WriteBuffer(buf1,sizeof(buf1));
G gxcooo Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-12 #3 声明一个TStringStream,然后copyfrom 原来的Stream,虽然这样得到的是一个TStringStream, 但可以很方便的转化为string
A Adnil Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-12 #4 SetLength(S, Stream.Size); Stream.WriteBuffer(Pointer(S)^, Length(S)); 搞定!