HeberPcL
[PowerOT.com.br]
Hey community,
I need to make a script to open the config.lua file, look for protectionLevel and change what is configuration.
If the setting is protectionLevel = 50 it changes for protectionLevel = 8.
I found the following code, but I don't know how to apply in TFS;
Does anyone know how to do?
I need to make a script to open the config.lua file, look for protectionLevel and change what is configuration.
If the setting is protectionLevel = 50 it changes for protectionLevel = 8.
I found the following code, but I don't know how to apply in TFS;
PHP:
local f = io.open('filename','r')
f:seek('end',-1024)
local text = f:read('*a')
local after = string.match(text,".*foo(.*)")
f:close()
Does anyone know how to do?