Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to create a text file with the name as SYSTEM DATE...
for example---28/04/2008:9:11:50.txt
The File name should be allocated dynamically.

Can you provide the c code for this?

Plese help me.
Posted
Updated 19-Dec-10 23:36pm
v2
Comments
JF2015 20-Dec-10 5:36am    
Edited to fix spelling errors.

Use one of the Time[^] functions and format the string in the way you want. But I would suggest you avoid '/' characters as they are directory separators.
 
Share this answer
 
thanks for the reply.
can u provide any example code for this so that it will be helpful to me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900