I plan to have my program to get the user's first name, middle initial, last name, age, and other varied things later on. Then once they have been inputted, save them to a .txt file. I mainly know how to write to a .txt file, but I have searched for hours for a way to search a .txt file for a one-line string. Either, none of them work for my situation, they don't work at all, or I don't understand them. If anyone could give me a run-down on different methods of doing so, I would be quite grateful.
The bottom function of is where I plan to do the finding/reading from a separate file that has each structured as followed:
[firstName]space[middleInit]space[lastName]space[fileName(aka the initials)]