Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.19 KB

README.md

File metadata and controls

18 lines (15 loc) · 1.19 KB

Text-File-Editor-Functions

Description

This is a command-line program that can perform Search and Replace or Spell Check on text (.txt) files. The program takes 3 arguments, an input txt file, an output .txt file (does not need to exist previously), and a dictionary txt file. The program generates a simple menu interface for users to interact with. Fairly simple design, not too complicated to work with. I provided two different dictionaries to work with, one very robust dictionary taken from https://github.com/dwyl/english-words, and a less-robust dictionary file. Only main assumption when running this program is that input strings will be no longer than 128 characters.

Tools Used

  • Compiled using gcc Version 7.4.0 on Ubuntu 18.04.01
  • Libraries included:
    • stdio.h
    • stdlib.h
    • string.h
    • ctype.h
  • An executable is offered for those who do not want to compile the source code themselves

Further Comments

Feel free to clone and use, edit, or distribute at your leisure. I hope people find this program useful and can help those who are writing similar programs. This is in no way the best or most efficient way to do this; this is my attempt at tackling the problem.