Kohinoor24
September 27th, 2002, 04:58 AM
Hi all,
Iam outputting Data into an ofstream file.
The path & filename of the output file is given in the program argument.
So In main() Function in main.cpp,I will get the filename,But Iam opening my output file in some other file(x.cpp) & I want to create the output file in this file only .I dont want pass the filename through functions().
Is there any other way to get the "File name " in x.cpp?
Thanks in advance..
Iam outputting Data into an ofstream file.
The path & filename of the output file is given in the program argument.
So In main() Function in main.cpp,I will get the filename,But Iam opening my output file in some other file(x.cpp) & I want to create the output file in this file only .I dont want pass the filename through functions().
Is there any other way to get the "File name " in x.cpp?
Thanks in advance..