Sign in to follow this  
Followers 0
leftler

Loading variables from a file

4 posts in this topic

I have a dictionary text file that has a indeterminate number of lines of words in it. I would like to load that dictionary in to an array so each word (one word per line) has its own element in the array.

I know I need to use FileOpen and FileReadLine, but what is a good way to initialize the array to be the correct size without a lot of extra wasted containers.

Thank you for your help.

Share this post


Link to post
Share on other sites



That looks perfect, thank you.

Share this post


Link to post
Share on other sites

Another quick question is there a AutoIt equivalent of the C++ "++var" operator?

Share this post


Link to post
Share on other sites

Well the long way of doing ++var is var = var + 1, I will just use that.

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