How to rename file object methods
snippet in lua

How to rename file object methods

user5944

local m = getmetatable(f)
m.Read  = m.read
m.Write = m.write
m.Close = m.close
m.Flush = m.flush