Jump to content
UBot Underground

Using delimiter and few variables in line?


Recommended Posts

lets say i have file which has 1 line with 4 variables:

omg|12345|zzz|6789

 

as we see they are delimited by | and they are in .txt file called text.txt lets say i want to nav to google.com and put 3rd word [zzz] as a value [text]. how to do that as i never worked with delimiters before and variables in one line?

 

thanx in advance :)

Link to post
Share on other sites

IRobot what if theres for examle 10 lines and eadch has 3 fileds:

user|passwd|name ?

How would thi bot work then ? Could You give example with 2 lines?

 

user1|pass1|Mike

user2|pass2|John

 

coz i kinda dont get it ;(

Link to post
Share on other sites

IRobot what if theres for examle 10 lines and eadch has 3 fileds:

user|passwd|name ?

How would thi bot work then ? Could You give example with 2 lines?

 

user1|pass1|Mike

user2|pass2|John

Read each line into a list. Then use $list from text to separate each line into another list of delimited values.
Link to post
Share on other sites

I think its easy enough to use 2 lists one after the other.

 

The 1st one reads the file and saves all lines into different list items, then you run a loop which save every delimited item to its item.

 

Ex.:


addtolist(A){$readfile(loc..\somefile.txt)};
loop($listtotal(A))
{
 addtolist({$listfromtext(#nextlistitem(A),|)};
}

 

I think this code should work.. ;)

 

Praney

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...