How do i write a string into a TFileStream?
I have an initiated filestream (fsKeyStream) var passed to a method in a key object containing some strings i need to save.
procedure TKey.SaveToFile(var fs : TFileStream );
keystream := TFileStream.Create(...
.. go through list items and...
TKey(Items[index]).SaveToFile( keystream );
The strings in Key contains the right data when i debug, and the resulting file has the right amount om items saved to it, but the saved strings are just empty..
What do i do wrong?