Objective
Add the missing code to create a program that will highlight user designated words.
Requirements
- Input Handling
- The program must take a file name as an argument and open the file for reading.
- The file will contain a list of words (aka a sentence), with one sentence per line.
- The program will read a keyword from the user via standard input (stdin).
- File Processing
- Get user's keyword from standard input
- Read from the provided file
- Process each line of the file
- If a word in the line matches the user's keyword
- If it is, surround the keyword in the line with asterisks (**) on each side.
- If it is not, do not modify the keyword.
- Output
- The program should print the modified text to standard output (stdout).
Steps to Complete
- Implement the requirements (see CODE comments in main.c)
- Compile and test the program
- Create a test file with a sentence or two
- Test the code's functionality by running the program with the test file as an argument and entering a keyword when prompted.
- Once working correctly, run /challenge/tester
- Get flag