Since it worked on XP and doesn't on Windows 8 I assume it has to do with the installation of codeblocks right? Maybe there is some setting that I missed. If not, I apologise for posting here. Where do I then go?
For what it's worth, the code of the file where it stops is
#include "Data.h"
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
size_t Data::getLines(string map, string name, string lines[])
{
size_t i = 0;
string fileName = map + "-" + name + ".txt"; // here it stops
ifstream teksten(fileName.c_str());
while (!teksten.eof())
{
getline(teksten, lines[i]);
i++;
}
teksten.close();
return i;
}