G2A Many GEOs


kssr3951 Jun 10th, 2014 (edited) 298 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LOG_FILE_NAME = "debug.log"
  2. function log(txt)
  3.   local hFile
  4.   if fs.exists(LOG_FILE_NAME) then
  5.     hFile = fs.open(LOG_FILE_NAME, "a")
  6.   else
  7.     hFile = fs.open(LOG_FILE_NAME, "w")
  8.   end
  9.   hFile.writeLine(txt)
  10.   hFile.close()
  11. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand