Skip to content

Instantly share code, notes, and snippets.

@bholota
Created August 18, 2017 20:17
Show Gist options
  • Save bholota/f62b1b1325e991c1cfdbe76883952df6 to your computer and use it in GitHub Desktop.
Save bholota/f62b1b1325e991c1cfdbe76883952df6 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <fstream>
int main() {
std::fstream plik;
bool pierwszy = true;
if (pierwszy) {
plik.open("file_load.cpp", std::ios::in);
} else {
plik.open("file_load.cpp", std::ios::in);
}
if (plik.is_open()) {
std::cout << plik.rdbuf();
plik.close();
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment