Skip to content

A C++ program that takes user input and parses a local CSV file adding any lines where that search query is found.

Notifications You must be signed in to change notification settings

dombartenope/csvreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To use this code, follow these instructions:

  1. Clone this repo
  2. Make sure that the input file, input.csv, is in the same directory as main.cpp
  • This should contain the data you want to search
  • The column names will automatically be moved to the output
  1. Compile the code using a C++ compiler, such as g++: g++ main.cpp -o main
  2. Run ./main from the terminal after building
  3. Add your query, or multiple queries,when prompted in the terminal to search
  4. Type "!done" when you are done adding searches

The program will read the input file, input.csv, and create a new output file, output.csv, in the same directory. The output file will contain the same data as the input file, but only the lines that contain the string will be written to the output file.

Change the color of your terminal output by setting colorMode to true. (This only applies if your terminal allows ANSI Color Codes)

About

A C++ program that takes user input and parses a local CSV file adding any lines where that search query is found.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages