I have a file with a list of user names, such as

john
jan
test
dennis
etc...

I want to read in the account name, change the password parameters, then move on to the next name in the list.

A loop of course, but I can't figure out how to specify the input file, and how to read one name at a time.

Any ideas would be appreciated.