Last active
January 16, 2018 05:01
-
-
Save ManYouForgot/bc203161da09dd6d8bb65b4e701740b2 to your computer and use it in GitHub Desktop.
Whatisit Plugin CSV Converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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