Need help with file reading

Materials, references, tutorials

Moderators: Murderator+, Murderator

Post Reply
Mazer
Posts: 125
Joined: 2007-11-13 00:39:14

Need help with file reading

Post by Mazer »

Hi,
how should look file with variables and how can i take these into script ?


my file looks like:

Code: Select all

dim asd[5]
asd[1] = "1"
asd[2] = "2"
asd[3] = "3"
asd[4] = "4"
asd[5] = "5"


and script:

Code: Select all

sub aa()
var x, f=file("test.dat")
f.Open()
for x = 1 to 5
   UO.print(asd[x])
   wait(300)
next
f.Close()   
end sub
Mazer
Posts: 125
Joined: 2007-11-13 00:39:14

Re: Need help with file reading

Post by Mazer »

and maybe some one can recomend me good walker script ?
Post Reply