Yoko
http://forum.yoko.com.ua/

load vars from a file
http://forum.yoko.com.ua/viewtopic.php?f=20&t=13060
Page 1 of 1

Author:  dagofee [ 2008-01-14 14:56:04 ]
Post subject:  load vars from a file

is it possible to load some variables from a file?
how?

Author:  Mihail [ 2008-01-14 15:17:27 ]
Post subject: 

you must create a text file, then:

Code:
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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/