Last active
September 22, 2015 14:47
-
-
Save v3c70r/f02d430f8f710a344f0c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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