Link to home
Start Free TrialLog in
Avatar of oalawna
oalawna

asked on

how to save string array in memorystream to file

Hi,
I have a string array and wrote it to stream.write(myarray,sizeof(myarray));
I then did stream.savetofile('myfile.pas');
but this wont really save the contents of the array to the file and instead the file is filled with strange chars.
First time to use TMemoryStream.
Any ideas?
thanks
ASKER CERTIFIED SOLUTION
Avatar of Member_2_248744
Member_2_248744
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of oalawna
oalawna

ASKER

thanks slick