search a test file for the number of occurrences of at least two words
Hi everyone,
I'm new to programming and I have to do a project and I'm not sure where I have to start from.
this is my project:
You are required to develop a program to search a test file for the number of occurrences of at least two words. Output from the program should be produced both on the display and held in second text file.
The input file, output file and the search words should be specified as command line arguments for the program.
i.e mysearchprog inputfile outputfile the but
where mysearchprog is the name of the program, inputfile and outputfile are the names of the input and output files and the and but are the search words.
Hint :
Your application should contain a number of functions.
Remember that words in the text file can be terminated with spaces, commas, full stops, etc.
I would really appreciate it if someone could help me on this, I need to complete the project in 10 days,
Thanks guys