Jump to content



Photo

Read From File Delimited Username:password


  • Please log in to reply
1 reply to this topic

#1 RoBRob

RoBRob

    Newbie

  • Members
  • Pip
  • 2 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 18 June 2017 - 07:37 PM

I want to know how to read from a file username:password split it and insert in the appropriate box?



#2 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 2365 posts
  • OS:Windows 10
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 19 June 2017 - 09:00 AM

You can create a list from file with your credentials and then with each you can split it using a list like so:

set(#credentials,"username:password","Global")
clear list(%credentials)
add list to list(%credentials,$list from text(#credentials,":"),"Delete","Global")
comment("Username")
alert($list item(%credentials,0))
comment("Password")
alert($list item(%credentials,1))

RW0SjB6.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users