Код: Выделить всё
#include
#include
#include
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
ofstream file;
file.open("test.txt");
if (!file) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/1579086/why-does-ofstream-sometimes-create-files-but-cant-write-to-them[/url]
Мобильная версия