Sometimes it is handy to have methods similar to the ones provided by the Lua io package. That is what these methods do.