Bulk upload members

How / where would I write a script like that? I am new to Wix and not able to really get a hang of it. I have a CSV file with the data. Do you have some samples somewhere that I can look at, for reading from a CSV file? And some documentation on how to run a one time script?