summaryrefslogtreecommitdiffstats
path: root/2022-2/L03/AperturaDeArchivos.h
blob: 0c28d0201767b243d69aeeb2d741b56afda3491f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* 
 * Proyecto: AperturaDeArchivos
 * Archivo:  AperturaDeArchivos.h
 * Autor:    J. Miguel Guanira E.
 *
 * Created on 26 de abril de 2022, 07:08 PM
 */

#ifndef APERTURADEARCHIVOS_H
#define APERTURADEARCHIVOS_H
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;

// Funciones para abrir un archivo y verificar su apertura

// ********************************************************
// LA VARIABLE DE ARCHIVO NO DEBE INVOCAR AL CONSTUCTOR
// ********************************************************

void AperturaDeUnArchivoDeTextosParaLeer(ifstream &archivo, 
                                         const char*nombreDelArchivo);

void AperturaDeUnArchivoDeTextosParaEscribir(ofstream &archivo, 
                                             const char*nombreDelArchivo);

#endif /* APERTURADEARCHIVOS_H */