What does Drupal do when registering a user?
No file is being created (unless you count the user avatar), only a database row in the users table.

You should check out the user_save function in the Drupal docs.