S
S
Speakermen2020-11-17 12:26:14
C++ / C#
Speakermen, 2020-11-17 12:26:14

How to work with directories from a console application in c++?

How to select a directory in the console? After js, php is not entirely clear with the syntax( Is there documentation with all the properties and methods?

#include <iostream>
#include <fstream>

using namespace std;

int main() 
{
  setlocale(LC_ALL, "ru");
  
  ofstream fout;
  
  fout.open("myFile.txt");
  
  int text;
  
  cin >> text;
  
  system("pause");
  
  return 0;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-11-17
@Speakermen

https://en.cppreference.com/w/cpp/filesystem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question