@Platypus, Lua has two set of functions to read/write and basically the direct way is using the io methods that work directly on the opened stream or using the filehandle: method that uses the created object from the opened file handle.
You will notice that it is always io.open but a filehandle:close which would indicate that the two are not separate set of functions.
Thanks for that. I am looking forward to comparing the two methods to see if one is better (faster, more efficient, more reliable, et cetera) than the other. I can hardly wait!
Kate's Catalogue of Travelling Theatre Centres : Meet Kate. Grey is her favourite colour. Maths is her favourite subject. Decency is her favourite type of behaviour. She definitely does not like jewellery or modelling, but loves aeroplanes and other machines made of aluminium.
Comments
Lua has two set of functions to read/write and basically the direct way is using the io methods that work directly on the opened stream or using the filehandle: method that uses the created object from the opened file handle.
You will notice that it is always io.open but a filehandle:close which would indicate that the two are not separate set of functions.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Thanks for that. I am looking forward to comparing the two methods to see if one is better (faster, more efficient, more reliable, et cetera) than the other. I can hardly wait!
Meet Kate. Grey is her favourite colour. Maths is her favourite subject. Decency is her favourite type of behaviour.
She definitely does not like jewellery or modelling, but loves aeroplanes and other machines made of aluminium.