the list of duplicates is ready (still not used)
[lqt.git] / test / file_test.lua
blob7116b5a3d4923c6b12a1f24b34b7f3889c9e86c3
1 require'qtcore'
3 local s = tostring{}
5 local fn=QString.new'tmp_file'
6 local f=QFile.new(fn)
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)