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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to a file

Status
Not open for further replies.

benaam

Mechanical
Joined
Aug 19, 2007
Messages
1
Location
US
I need to log to a file say a.txt the following values:
current date,current time,string,string

For the path of a.txt, i need to read from a file called info.properties which has a lot of parameters and their values in the following format:
Status = on
Path = here is the path of the a.txt

Now i need to read from the above properties file in the following manner:

String s = valueOf("Path");

And then I log the info into the file specified by this path. Some sample code would be really helpful as I am novice to C++. Code to retrive the date and time is also needed.

Thanx in Advance

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top