Hi
is the following use of name space correct?
//info.h ****************
....
#include <fstream>
using std::ofstream;
....
namespace s_inf
{
ofstream tf;
....
}
//info.cpp ****************
namespace s_inf
{
....
tf.open( "/res/test_file", ios::app );
....
}
//main.cpp ****************
#include "info.h"
....
int main(){
s_inf::tf << "program started at "
<< system ( "date" )
<< endl;
thanks