Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- std::vector<string> lines;
- string line;
- int i;
- ifstream myfile ("b02.nets");
- if (myfile.is_open())
- {
- i = 0;
- while (!myfile.eof())
- {
- getline (myfile, line);
- boost::trim_left(line);
- if(line[0] != '#') // Condição para guarr a linha
- {
- lines.push_back(line);
- i++;
- }
- if(i == 1)
- {
- }
- }
- myfile.close();
- }
- else
- cout << "Unable to open file";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement