Total Pageviews

Wednesday, April 2, 2014

ការដាក់បង្ហាញហ្វាល់ដើម

Io.flush() គេ​ប្រើវាសំរាប់ flushes output របស់ហ្វាល់ដើម។ វាស្មើនឹង io.output():flush។ បើសិនជា io.output មិនត្រូវបានផ្លាស់ប្តូរពីហ្វាល់ដើមរបស់វា (stdout) វានឹង​ flush នូវ io.write ណាមួយ ឬក៏ព្រីនទិន្នន័យទៅកាន់ Corona terminal, Xcode Console & Console app

Syntax: io.flush()

សូមមើលកូដះ
io.write( "My console data\n" ) -- write the string to console
io.write( "My console data 2\n" ) -- write the string to console
io.write( "show me the original files" .. "flush really did a great thing")


io.flush()

No comments:

Post a Comment