Sign in to follow this  
Followers 0
Tsel

Obtain list from txt file and rotate through that list

2 posts in this topic

Hello all,

Just started using AutoIt. I am looking for a way to get information from two files, numbers.txt and names.txt and putting that information into variables which then will go into a for or while loop, the plan would be for the script to cycle through those files taking the information one entry at a time in a descending order and when the loop finishes then goes and grabs the next entry in the lists and so on. The loop would then stop if there are no more entries to grab in the files. Any idea? help? point me on the right track?

There are going to be hundreds of entries on the files.

Thanks for your time and help.

Share this post


Link to post
Share on other sites



Hello all,

Just started using AutoIt. I am looking for a way to get information from two files, numbers.txt and names.txt and putting that information into variables which then will go into a for or while loop, the plan would be for the script to cycle through those files taking the information one entry at a time in a descending order and when the loop finishes then goes and grabs the next entry in the lists and so on. The loop would then stop if there are no more entries to grab in the files. Any idea? help? point me on the right track?

There are going to be hundreds of entries on the files.

Thanks for your time and help.

Welcolme to the forum ! Posted Image

You can try with the _FileReadToArray function, see the helpfile !


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0