[Gambas-user] Saving & Loading multible Variables

Scott sclewin at ...1126...
Wed Jan 11 19:11:58 CET 2006


nando wrote:
> With strings, there are 2 ways.
>
> 1) WRITE #hfile, FirstName, 25   <----writes 25B with padding if needed
> 2) WRITE #hfile, FirstName       <----write 4B (binary) Length of the string,
>                                       then writes the string..ONLY the bytes it
> actually is.  This method cannot be used for fixed record sizes
>
> I Use the first method for my Random File Records.
>
> (all this information is listed in Wiki)
>   
Thank you, I will check out the wiki on the webpage.

-- 
Your friend,
Scott

"Do to others as you would have them do to you."
Luke 6:31





More information about the User mailing list