Writes userList into a .txt file.