276 posts
Location
Fairbanks, Alaska
Posted 14 December 2014 - 10:39 PM
I want to learn how to create a handle, like on file = fs.open("test","r") file:readLine(). I can't figure out how to make them.
Thanks,
-bluebird
7508 posts
Location
Australia
Posted 14 December 2014 - 10:44 PM
the 'handles' which are returned by opening files or requesting from the internet are nothing special, they're just tables with functions in them.
Edited on 14 December 2014 - 09:44 PM
7083 posts
Location
Tasmania (AU)
Posted 14 December 2014 - 10:51 PM
If you read the source code for the "vector" or "window" APIs, you'll probably find what you're after.
276 posts
Location
Fairbanks, Alaska
Posted 18 December 2014 - 01:02 AM
K thanks, ill take a look at that :D/>