| View previous topic :: View next topic |
| Author |
Message |
Azirek
Joined: 29 Jan 2012 Posts: 25
|
Posted: Sat Jul 21, 2012 2:18 am Post subject: How read variable from file? |
|
|
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 |
|
 |
Azirek
Joined: 29 Jan 2012 Posts: 25
|
Posted: Sat Jul 21, 2012 4:00 pm Post subject: |
|
|
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 |
|
 |
|