load vars from a file

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
dagofee
Posts: 10
Joined: 2006-10-29 18:32:39

load vars from a file

Post by dagofee »

is it possible to load some variables from a file?
how?
Mihail
Expert!
Posts: 548
Joined: 2005-05-20 20:30:10
Contact:

Post by Mihail »

you must create a text file, then:

Code: Select all

Sub ReadFile() 
var f=file("C:\test.txt") 
var i=0, s="", text=""
f.open()
while not f.eof() 
s = safe call f.readln()
text=text+s 
wend
f.close() 
uo.msgbox(text)
end sub
[url=http://forum.yoko.com.ua/viewtopic.php?t=7379&start=15#69595][b]"плагины" для инжекта[/b][/url]
Post Reply