You may be tempted to put all of this info in a single record in a file
This is not a good practice. It has duplicate data (namely, the passwords). If you change the password on a device, you do not want to change it in multiple records in this file. This increases the chance of error and your data may lose its integrity.