added software versions list
[lqt.git] / test / file_test.lua
blobd2b8f010ed9af222b084fcd60b8ddcc11df8c6c6
2 local s = tostring{}
4 local fn=QString.new'tmp_file'
5 local f=QFile.new(fn)
6 print('open file => ', f:open{'WriteOnly'})
7 print('write to file => ', f:write(s))
8 print('flush file =>', f:flush())
9 print('close file => ', f:close())
10 print('reopen file =>', f:open{'ReadOnly'})
11 print('correct read => ', f:readAll()==s)