Skip to content

Instantly share code, notes, and snippets.

@v3c70r
Last active September 22, 2015 14:47
Show Gist options
  • Save v3c70r/f02d430f8f710a344f0c to your computer and use it in GitHub Desktop.
Save v3c70r/f02d430f8f710a344f0c to your computer and use it in GitHub Desktop.
std::ifstream inFile(objFile);
if (!inFile.is_open())
{
std::cout<<fileName<<" does not exist\n";
exit(-1);
}
std::string str;
std::cout<<"Loading "<<objFile<<"..."<<std::endl;
while (std::getline(inFile, str)) //read position
{
splitstring split(str);
vector<string> splited=split.split(' ');
if (splited.size() > 0)
{
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment