I need to get every line in my text in its own variable. Like this:
The text file:
TEMPLATE: Permission, Username, Password;
Admin, Admin, Superflip;
User, Mom, Hi;
I want every line in this file in its OWN variable. Is it possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following should work…
How the script works:
The variable
numis set for use in theforloop.The
forloop goes through each line in the fileFile_Pathsetting the line asline, suffixed by a number.This script emulates creating an array. To call a specific line, put
%line[number_of_line]%. For instance, to check ifline 3andline 5are the same, you would put something like