[Gambas-user] Saving & Loading multible Variables

Scott sclewin at ...1126...
Tue Jan 10 22:35:17 CET 2006


nando wrote:
> Here's how I do multiple variables into 1 file (v 1.0.6)
>
>
> DIM i AS INTEGER
> DIM s AS STRING
> DIM q as SHORT
> DIM hfile AS FILE
>
> OPEN "/home/folder1/my_vars/" FOR WRITE AS #hfile
> WRITE #hfile, i
> WRITE #hfile, s, 3
> WRITE #hfile, q
> CLOSE hfile
>   
That is how i ended up doing the multiple variables.  Do you need to put 
down the string length ("WRITE #hfile, s, *3*") I did not understand 
that too well.

-- 
Your friend,
Scott

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060110/ebdbc319/attachment.html>


More information about the User mailing list