thanks for all the help that i have been getting but can anyone suggest how i may read a 4 character string from a text file then compare it to an input from the user then print the relating information

Depending on the layout of the file you should be able to use fgets to get the string and then use strcmp to compare it. If this is a direct continuation from your other thread's question you should ask a moderator to close this one and merge it with the other.

Please stop flooding the forum with these questions. This should be discussed here. Closed

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.