Home > Back-end >  Codeblock or Dev - c, VC6.0 how to implement the input file name, open the file
Codeblock or Dev - c, VC6.0 how to implement the input file name, open the file

Time:09-20

 # include 
# include
# include
using namespace std;
Int main (void) {
string name;
Getline (cin, name);
Cin> name;
System (" start "name");
return 0;
}

   DevC want to ask you how to implement the input file name (including extension), open the file?
My code is not possible,,,,,,,,,

CodePudding user response:

Char file_name [1024]={0};

Strcpy (file_name, "start");
Strcat (file_name, name);
System (file_name);