用 ObjectBinaryToText() 函数即可!如:<br><br>var <br> ms: TMemoryStream; <br> fs: TFileStream; <br>begin <br> fs := TFileStream.Create(filename, fmOpenRead); <br> ms := TMemoryStream.Create; <br> try <br> ms.loadfromfile(sourcefilename); <br> ms.position := 0; <br> ObjectBinaryToText(ms, fs); //将二进制内容转换为文本<br> finally <br> ms.Free; <br> fs.free; <br> end; <br>end;