need to save simple queue output to a file

I know this is the old thread but I did find this script useful to export queue stats every months (and then reset them). BUT this script was (and still is) limited due to variable size 4096 bytes (see here http://forum.mikrotik.com/t/how-to-write-string-to-a-file-using-script/99624/1 ). That is why if you try to export more than ~20 queues it does not work - the $message variable cannot hold so much strings :frowning: . So I was thinking if I could write every queue stats separately one by one and append it to the file (the same like /log print append file= … does), but it is probably still not available (ROS 6.49.2 or ROS 7.2RC3) ? Otherwise you have to always read current content of the file first and it is the same problem :frowning:

Maybe read every queue to separate message variables (message1, message2…) and then somehow write to file all these messages (i.e. 500) one by one to that output file? Is there any solution to this task in 2022? Thanks.