Advertisement
wldk

poka2

Aug 9th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. tArgs = {...}
  2. tArgs[1]="fdraw"
  3. -- Open an existing file in read ("r") mode.
  4. local file, errorMsg = io.open( fdraw, "r" )
  5.  
  6. if errorMsg ~= nil then
  7.     print( "Call to io.open failed: " .. errorMsg .. "\n" )
  8. end
  9.  
  10. for line in file:lines() do
  11.  
  12.     print( line )
  13.  
  14. end
  15.  
  16. file:close()
  17.  
  18. print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement