>So che è possibile farlo tramite un file .txt

Un file txt che contiene l'elenco degli utenti del sistema?