Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. int main()
  2.  
  3. std::vector<string> lines;
  4. string line;
  5. int i;
  6.  
  7. ifstream myfile ("b02.nets");
  8.  
  9. if (myfile.is_open())
  10. {
  11. i = 0;
  12. while (!myfile.eof())
  13. {
  14.  
  15. getline (myfile, line);
  16.  
  17. boost::trim_left(line);
  18.  
  19. if(line[0] != '#') // Condição para guarr a linha
  20. {
  21. lines.push_back(line);
  22. i++;
  23. }
  24. if(i == 1)
  25. {
  26.  
  27. }
  28. }
  29. myfile.close();
  30. }
  31. else
  32. cout << "Unable to open file";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement