Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how 2 read id #s from a text file
#1
Im trying to make it so the macro logs ids to a text file from my site and checks to see if its logged the same one or not..

the text looks like this

873625
746352
634869
385736
as it logs the ids

but i need it to look in the text file to see if it done logged the id and if so skip and look again

this is the code

str n=htm("TD" " [] [] [] " "" win("Window" "#32770") 0 135 0x21 0 10)

str s.getfile("$desktop$\id.txt")

int i=find(s n)

if i = -1
,mes("Done logged")
else
,_s=n; _s.setfile("$desktop$\id.txt" -1 -1 1)
,mes("Logged")


I have tried and tired to get this to work and to work with the info that was posted here How 2 read information on a file

and still dont work it only reads the first line in the test file and thats it..

Can someone help me here??


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)