#include <fstream> #include <string> using namespace std; int main() { setlocale(LC_ALL, "ru"); const int size = 10; string path = "filetext.txt"; ofstream fout; fout.open("C:\Users\Andrey\Desktop\filFile.txt"); fout.close(); system("pause"); } 

Incorrectly formed universal symbol name, what's the problem?

  • one
    Perhaps you need to replace the line: fout.open ("C: \ Users \ Andrey \ Desktop \ filFile.txt"); on fout.open ("C: \\ Users \\ Andrey \\ Desktop \\ filFile.txt"); - zcorvid 2:51 pm
  • Thanks for the help. - FiftySeventh

0