Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. int main()
  2. {
  3.  
  4. std::string infilename;
  5. std::ifstream inf;
  6. std::string outfilename;
  7. std::ofstream outf;
  8.  
  9. std::cout << "Enter file name: ";
  10. std::cin >> infilename;
  11. inf.open(infilename);
  12.  
  13. if (inf.is_open())
  14. {
  15. std::cout << "In a file! Processing..." << std::endl;
  16. while (!inf.eof())
  17. {
  18.  
  19. }
  20.  
  21. inf.close();
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement