Z zengtao Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-09 #1 怎样在INI文件中写入二进制流并取出数据? 最好给个例子,谢谢!
G gear1023 Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-09 #4 ReadBinaryStream/WriteBinaryStream 就是用来做这个的. 例如: 读: FMemoryStream := TMemoryStream.Create; ini.ReadBinaryStream('Config', 'test', FMemoryStream); 写: ini.WriteString('Config', 'test', FMemoryStream);
ReadBinaryStream/WriteBinaryStream 就是用来做这个的. 例如: 读: FMemoryStream := TMemoryStream.Create; ini.ReadBinaryStream('Config', 'test', FMemoryStream); 写: ini.WriteString('Config', 'test', FMemoryStream);
F firstrose Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-10 #5 注意,INI只是文件类型,与内容没有必然联系,所以要求可以办到! var f:file: begin assignfile(f,'1.ini'); rewrite(f,1); blockwrite(f,buf,len,code); closefile(f); end.
注意,INI只是文件类型,与内容没有必然联系,所以要求可以办到! var f:file: begin assignfile(f,'1.ini'); rewrite(f,1); blockwrite(f,buf,len,code); closefile(f); end.
O onlyonekgx Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-10 #6 当然可以,就象XML一样, 虽然他本身是文本文件, 但能存储任何形式的数据