This is my implementation of a program that censors words in debate.txt from a given set of words in redact.txt.
This was part of my coursework during 1st year and I improved my understanding of string and text manipulation in C.
- This program can distinguish all words from each other in redact.txt as long as they are separated (see screenshots)
- The program creates a new file (or overwrites it if already existing) results.txt that containts the text after being censored.
This was developed using CLion. I had some constraints when developing this program: I was not allowed to use any string manipulation libraries to handle comparisons and more.
This program will ignore any symbols or characters that are not in the English alphabet, e.g having 1000 or (".? in redact.txt will not be assumed to be a word that has to be censored
As mentioned in Features, the words to be censored can be stored in any way, ie the program ignores all the white space in redact.txt.
This is an example of part of the text that will be censored.
And this is part of the result.