Jump to content
UBot Underground

turn data in csv file into variables?


Recommended Posts

Can I take the data out of a file and turn them into variables.

 

Example:

 

lets say the it is a csv file with the following:

 

grapes,oranges,apples

 

can I extract those and turn them into 3 different variables such as : #grapes #oranges #apples ?

 

Ya know what I mean?

  • Like 2
Link to post
Share on other sites

You want to have variables created dynamically.

 

I want that too, for various reasons...

(more or less obvious to UBot Studio dev team who seems to have dismissed the idea)

 

It is is not currently possible... unfortunately!

Link to post
Share on other sites

Can I take the data out of a file and turn them into variables.

 

Example:

 

lets say the it is a csv file with the following:

 

grapes,oranges,apples

 

can I extract those and turn them into 3 different variables such as : #grapes #oranges #apples ?

 

Ya know what I mean?

 

not sure why you would want to do this you can just call the table cell for the data

 

did i miss something?????

 

 

 

Pftg4

Link to post
Share on other sites

Yeah I am probably making this more difficult than it needs to be.

 

Also not sure if I can use a .ods file (open office spreadsheet file) or if I should just use a .txt file with a deliminator separating the data.

 

All I want to do is have the user of the bot to be able to choose a file. Then pull the data from the file to use for account creation - first name, last name, user name, password ect...

 

So if I can just call the table cell for the data then that would work. So how do I pull data out of a specific table cell?

 

I can't simply loop through the data because each site uses different info in a different order.

Link to post
Share on other sites

Ha ha ha. It only took me two days but I figured it out.

 

add list to list(%accounts, $list from file(#accounts), "Delete", "Global")

add list to table as row(&accounts, 0, 0, %accounts)

set(#username, $table cell(&accounts, 0, 0), "Global")

alert(#username)

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...