Easy way to make an array out off the data from .txt?

Can I get a list off variables from a .txt file into an array in a practical way?

-Vidar