Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuration File in C++

Status
Not open for further replies.

benaam

Programmer
Jan 11, 2001
20
US
HI,
Whats the configuration file called in C++ to get runtime parameters? For eg its called properties file in JAVA with extension .properties. This properties file is used to get run time parameters to be specified by the client. What is it in C++? And how to read from this configuration File.
I want this in pure C++. No VC++ or MFC.
Some sample code would be really helpful

Thanx in Advance
 
Are there any ways of reading the config file from my program at runtime?
 
I'm a little confused. Are you taking about a compiler or a program you wrote? An easy way to pass options to a compiler is to use a makefile. To use a config file in your program, you have to open the file and read it.

James P. Cottingham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top