Comments as variables?

I know it’s been talked about before (link 1, link 2)…

In winbox, the comment box is limited to 30,000 characters, which ends up being at 30KB. Writing to a file is limited to 4KB.

How much data will a scan generate?

I tried setting a simple queue comment with this number of characters, and it saved ok, but when I tried to do this in the terminal,

:put [/queue simple get queue1 comment]

it locked up the router, and even a reboot didn’t fix it, lol. In Tools > Profile, the Management cpu usage was 90%+ until I reset config.

Reading/writing to a file can be done like this:

# create the file
/file print file=myFile
# set file contents
/file set myFile.txt contents="some text";
# get file contents, save as variable
:local myVar [/file get myFile.txt contents]