Thank you @gcjr
This mostly works!
If I knew what this was doing or how to deal with it, please can someone explain?
while (readLine (myFile, str, sizeof (str)))
{
char *p = & password [nPassword++][0];
strncpy (p, str, PASSWORDLENGTH); // destination, source... seems like it should be str, p
}
This appears to copy anything to the "password" array and cuts it at the length??
We need to add to the password array only if it is 8 characters. If it is more than 8 or less than 8, ignore it and move on to the next one in the file.
Working on figuring it out.
Thank you!