Skip to content

Instantly share code, notes, and snippets.

@ManYouForgot
Last active January 16, 2018 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManYouForgot/bc203161da09dd6d8bb65b4e701740b2 to your computer and use it in GitHub Desktop.
Save ManYouForgot/bc203161da09dd6d8bb65b4e701740b2 to your computer and use it in GitHub Desktop.
Whatisit Plugin CSV Converter
#include <iostream>
#include <fstream>
using namespace std;
//To use just move the itempanel.csv to same directory and run
int main(){
ifstream inFile;
ofstream outFile;
string A, B, Name;
inFile.open("itempanel.csv");
outFile.open("namesConversion.yml");
while(inFile.good())
{
inFile.ignore(100, ',');
getline(inFile, A, ',');
getline(inFile, B, ',');
inFile.ignore(100, ',');
getline(inFile, Name, '\n');
outFile << " '" << A << ";" << B << "': " << Name << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment