nicolasrb2001 / Text_Censoring

C program that censors words in a text file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text_Censoring

This is my implementation of a program that censors words in debate.txt from a given set of words in redact.txt.

Motivation 🛸


This was part of my coursework during 1st year and I improved my understanding of string and text manipulation in C.

Features

  • 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.

Technical Information

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.

Known Issues/Limitations

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

Screenshots

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.

About

C program that censors words in a text file


Languages

Language:C 85.3%Language:CMake 14.7%