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.
- Download this repo to your local drive.
- Open a terminal.
- Navigate in your terminal to the folder containing this repo.
- Move your CSV files to the same folder as
csvto3dstrings.py
. - In the terminal, execute with the following usage:
python csvto3dstrings.py INPUTFILE OUTPUTFILE STRUCTURENAME
. For example, you might executepython csvto3dstrings.py scales.csv scales.h myScales
. Notice thatscales.csv
in the inputfile,scales.h
is the output file, and the name of the 3-d array ismyScales
. - For testing purposes, the above referenced input file is included in the repo for testing.
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!
- Fork the Project and make a branch with your feature (
git checkout -b feature/myFeature
). - Commit your Changes (
git commit -m 'Added myFeature'
). - Push to the Branch (
git push origin feature/myFeature
). - Open a Pull Request.
Distributed under the MIT License. See LICENSE.txt
for more information.
Pending...