LoginSignup
1
0

More than 5 years have passed since last update.

Tclの配列を簡単にシリアライズする方法

Posted at

array get と array set を使う。

シリアライズ側

puts $fp [array get x] ;# 配列xをファイルへ書き出し

デシリアライズ側

gets $fp buf
array set x $buf ;# 配列xの復元
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0