_ [C++][boost]素人が書く C++ ファイル削除。Boost を使います。 #include <boost/filesystem/operations.hpp> #include <boost/filesystem/fstream.hpp> #include <iostream> #include <string> using namespace std; namespace fs = boost::filesystem; int main( int ac, char** av ) { string fn = av[ 1 ]; string sout = "hello"; string sin; ofstream fout( fn.c_str() ); ifstream fin( fn.c_str() ); fout << sout << endl; fin >> sin; c
![:-): 仕事, 素人が書く C++, 素人が書く C++, 素人が書く C++, EXTRA - HYPER GAME MUSIC EVENT 2007, 飯, おやつ - ヨタの日々(2007-05-11)](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ea2f64f4c02ebd67ecd6cdb7d76e996de6ae162/height=288;version=1;width=512/https%3A%2F%2Fwww.area51.gr.jp%2F~rin%2Fdiary%2Ftheme%2Fogimage.png)