guyewhite / CSVto3Dstrings

A useful tool to convert any CSV file into a 3-d array of strings in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues MIT License

CSVto3Dstrings

CSVto3Dstrings is a useful tool to convert any CSV file into a 3-d array of strings in C. I created it after amassing a fairly large spreadsheet of musical scale and note values and wanted to convert those for use in a C program. This tool could be useful for anyone needing to keep track of various attributes within such a 3d array.

product-screenshot

Built With

  • Python
  • Clang

Installation

  1. Download this repo to your local drive.
  2. Open a terminal.
  3. Navigate in your terminal to the folder containing this repo.

Usage

  1. Move your CSV files to the same folder as csvto3dstrings.py.
  2. In the terminal, execute with the following usage: python csvto3dstrings.py INPUTFILE OUTPUTFILE STRUCTURENAME. For example, you might execute python csvto3dstrings.py scales.csv scales.h myScales. Notice that scales.csv in the inputfile, scales.h is the output file, and the name of the 3-d array is myScales.
  3. For testing purposes, the above referenced input file is included in the repo for testing.

Contributing

Your contributions to this project are very much appreciated. If you would like to help make this project better, fork to repo and create a pull request. Alternatively, you can open an issue with the tag "request." Please star this project!

  1. Fork the Project and make a branch with your feature (git checkout -b feature/myFeature).
  2. Commit your Changes (git commit -m 'Added myFeature').
  3. Push to the Branch (git push origin feature/myFeature).
  4. Open a Pull Request.

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Pending...

About

A useful tool to convert any CSV file into a 3-d array of strings in C.

License:MIT License


Languages

Language:Python 87.2%Language:C 12.8%