InformáticaBásico1 respuestas

Visualizar contenido de archivo text c + + , ?

Visualizar contenido de archivo text c + + , .

7Ramirezalison1o

En resumen

#include #include #include using namespace std ; void main () { string STRING ; ifstream infile ; infile. Open ("names. Txt") ; while(! Infile. Eof) / / To get you all the lines. { getline(infile, STRING) ; / / Saves the line in STRING. Cout.

Mejor respuesta

Emilcenunez238

1

#include

#include

#include

using namespace std ;

void main ()

{ string STRING ; ifstream infile ; infile.

Open ("names.

Txt") ; while(!

Infile.

Eof) / / To get you all the lines.

{ getline(infile, STRING) ; / / Saves the line in STRING.

Cout.