ofstream次のように、OMNET++で.txtファイルにデータを書き込もうとしiostreamましたfstream。
ofstream myfile;
myfile.open ("example.txt");
myfile << "Writing this to a file.\n";
myfile.close();
しかし、OMNET++は解決openおよびclose機能していません。
ofstream誰かがC++で.txtファイルにデータを読み書きするという同じタスクを達成する以外の方法を提案できますか?