bsmith95610 said:
Does anyone know what the command is to scan a line of a file in a text
document for a specific word? Is there such a command? Anything would
help thanks.
Is this really a question about the C programming language?
C doesn't have "commands". The C standard library has a number of
functions; there's no single function that will do what you're asking
for, but it shouldn't be hard to combine them if you want to write a
program to do the job.
If you're looking for a *command*, that's probably something that's
provided by your operating system. We don't know what OS you're
using; even if we did, we couldn't help you here, because we only
discuss the C programming language.
If you ask in another newsgroup, I suggest you define the problem more
precisely. What exactly is a "word"? Do you want to scan the entire
file, or just one specified line; if the latter, how is the line
specified? Do you just want the result printed, or do you want to be
able to do something else with it? And so forth.