我正在使用C++中的文件.我在系统提示符下调用一个程序来创建一个txt文件.然后我使用C++来读取该文件.我需要确保C++在读取文件之前等待程序完成.
解释C++:
createOutputFile();
system("Start wp/PRO386W.EXE /V1 consult('wp/read.pl').");
// I need to wait for this "PRO386W.EXE to finish
readLista();//before calling this method
Run Code Online (Sandbox Code Playgroud)