Loop through info in a file
Posted: 23 Feb 2017, 07:19
Hi,
I want to create a script that loops through information in a text file.
The text file looks like this:
And the idea is to pull the first ID on row 1 (acc1), and then loop through the rest of the IDs on the same line (char1,char2,char3). And then move to line 2 and do the same.
Kinda like this, although I know the syntax is incorrect for AHK.
Anyone able to assist in how I can read the text file into a script, and process the IDs in it in such a loop? Thanks in advance.
I want to create a script that loops through information in a text file.
The text file looks like this:
Code: Select all
acc1 char1 char2 char3
acc2 char1 char2 char3
Kinda like this, although I know the syntax is incorrect for AHK.
Code: Select all
for 1 to accounts
{
for 1 to characters
{
do something
}
}