Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Aug 19, 2007
1
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