Skip to content

Instantly share code, notes, and snippets.

@patriciogonzalezvivo
Last active December 27, 2015 19:39
Show Gist options
  • Save patriciogonzalezvivo/7378980 to your computer and use it in GitHub Desktop.
Save patriciogonzalezvivo/7378980 to your computer and use it in GitHub Desktop.
Reading a CSV on OF
ofBuffer buffer = ofBufferFromFile(_file);

while(!buffer.isLastLine()) {
	string temp = buffer.getNextLine();
        
    if(temp.length() != 0) {
        vector<string> values = ofSplitString(temp, ",");
            
        //	 ofToInt(value[0]);
        //   ofToFloat(value[1]);
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment