Reading and writing of files in C++
Se requiere de la libreria llamada fstream.
Hay maneras de elegir el tipo de variable. dependiendo los propositos
Data Type |
Description |
ofstream |
This data type represents the output file stream and is used to create files and to write information to files. |
ifstream |
This data type represents the input file stream and is used to read information from files. |
fstream |
This data type represents the file stream generally, and has the capabilities of both ofstream and ifstream which means it can create files, write information to files, and read information from files. |
Usamos esta para tomar los valores en el sudoku por ejemplo.
Se llama el archivo a la hora de correr el programa.
#Mastery28 #Tc1017 by Juan Pablo Gonzalez Huezzo is licensed under a Creative Commons Attribution 4.0 International License.