Created
January 27, 2013 19:39
-
-
Save robotconscience/4650006 to your computer and use it in GitHub Desktop.
Openframeworks version of Processing's loadStrings
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
static vector<string> loadStrings( string file ){ | |
static vector<string> ret; | |
ret.clear(); | |
ofBuffer temp = ofFile( file ).readToBuffer(); | |
while ( !temp.isLastLine() ){ | |
ret.push_back( temp.getNextLine() ); | |
cout<<ret.back()<<endl; | |
} | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment