5 local fn
=QString
.new
'tmp_file'
7 print('open file => ', f
:open
{'WriteOnly'})
8 print('write to file => ', f
:write(s
))
9 print('flush file =>', f
:flush())
10 print('close file => ', f
:close())
11 print('reopen file =>', f
:open
{'ReadOnly'})
12 print('correct read => ', f
:readAll()==s
)