Advertisement
cardel

Ejemplo lectura archivo

Oct 8th, 2016
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6.  
  7. int main(){
  8.  
  9.         char nombre[100];
  10.         cout << "Ingrese el nombre del archivo\n";
  11.         cin >> nombre;
  12.         ifstream archivo(nombre);
  13.         archivo.close();
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement