Jump to content
Sign in to follow this  
leftler

Loading variables from a file

Recommended Posts

leftler

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
leftler

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

Share this post


Link to post
Share on other sites
leftler

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.