Я открыл файл следующим образом:
Код: Выделить всё
std::ofstream file;
file.open("data.txt");
file.close();
Подробнее здесь: https://stackoverflow.com/questions/785 ... -file-in-c
Код: Выделить всё
std::ofstream file;
file.open("data.txt");
file.close();