You have to edit this part
myfile.txt - name of fileCode:("myfile.txt","r")
r - r means it will read the file
Heres a quick copy and paste from evilmana.comCode:*n - reads a number and returns it. ex: file.read("*n")
*a - reads the entire file from the current position. ex: file.read("*a")
*l - (default) - reads the next line, returns nil on End of File (EOF). ex: file.read("*l")
number - returns a string with up to that many characters in it, or nil on EOF. ex: file.read(5)
http://evilmana.com/tutorials/lua_tutorial_09.php
