Hi everyone,

I've written a function that searches a file for a string. The way it works is that I type in the function name and then the arguments are the string and filename. For example when I execute the program I'll do something like:

./program joe filename.txt

where program is my executable program
joe is the string to be found
filename.txt is the file to be searched

However, if I put ( for the string to be found, the result is a message displayed at execution time saying: "Too many ('s."

Does anyone know how I can modify my program so that if I put ( as the string to be searched it'll search for the character ( rather than interpreting it as an unclosed parathesis?

Note: I want to be able to write it as ( when I try to execute my program, it's not in the command line that I want to change it..

Thanks,

Canadian0469