TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

How read variable from file?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
Azirek



Joined: 29 Jan 2012
Posts: 25

PostPosted: Sat Jul 21, 2012 2:18 am    Post subject: How read variable from file? Reply with quote

Hello. I would like to read variable from the file.

Code:

#alias {write}{#system {echo $zabici >> .arkadia/zabici_teraz}}
#alias {read}{#var {zabici}{#system cat .arkadia/zabici_teraz}}


Only write works

Code:

#sh $zabici           
#system cat .arkadia/zabici_teraz 


Please, help.
_________________
GNU Linux Slackware Current, Tintin++ 2.00.7 and 2.00.9
Back to top
View user's profile Send private message
Azirek



Joined: 29 Jan 2012
Posts: 25

PostPosted: Sat Jul 21, 2012 4:00 pm    Post subject: Reply with quote

I found a solution

class data.tin
Code:

#CLASS {data} OPEN
#VARIABLE         {zabici_teraz}  {}
#CLASS {data} CLOSE


class alias.tin
Code:

#ALIAS {write}{#class data write .arkadia/data.tin}{5}
#ALIAS {read}{#class data read .arkadia/data.tin}{5}

_________________
GNU Linux Slackware Current, Tintin++ 2.00.7 and 2.00.9
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group