title: Require File Lua
body: <p>How can I run a function from another file on same directory?</p>
  
  <p>Example:</p>
  
  <p>file1:</p>
  
  <pre><code>function sleep(n)
    local t = os.clock()
    while os.clock() - t &lt;= n do
      -- nothing
    end
  end
  </code></pre>
  
  <p>file2:</p>
  
  <pre><code>dofile('/barboszalib.lua')
  
  function DoSomething(target)
  print(target + 3)
  end
  
  while true do
  DoSomething(4)
  barboszalib.sleep(5)
  end
  </code></pre>