V
V
vjufvufcgyf2020-12-01 22:42:32
C++ / C#
vjufvufcgyf, 2020-12-01 22:42:32

How to create a file in C++ without opening it?

How to create a file in C++ without opening it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
6
6db, 2020-12-02
@6db

#include <fstream>

ofstream out("D:\\test.txt"); //создали файл для записи
out.close();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question