Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string readFile(){
- string content;
- ifstream myFile("C:\\Users\\Jarek\\ClionProjects\\stratgen\\Read.txt");
- if (myFile.good()){
- myFile.open("C:\\Users\\Jarek\\ClionProjects\\stratgen\\Read.txt");
- myFile >> content;
- myFile.close();
- return content;
- }
- else{
- myFile.close();
- return NULL;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment