Hi, > Â Â Â ..... > Â Â Â Â std::string f; > Â Â Â Â std::fstream > fout; > Â Â Â Â f = "filter"; > Â Â Â Â fout.open(f.c_str(), std::fstream::app | std::fstream::out); Why not checking if fout.open() return NULL ? Regards. -- Yann Droneaud