创建名称为系统日期的文本文件 [英] Create text file with the name as System date

查看:105
本文介绍了创建名称为系统日期的文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想创建一个文本文件,名称为SYSTEM DATE ...
例如--- 28/04/2008:9:11:50.txt
文件名应动态分配.

您可以为此提供C代码吗?

请帮助我.

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.

推荐答案

使用时间之一a> [ ^ ]函数并以这种方式格式化字符串你要.但是我建议您避免使用"/"字符,因为它们是目录分隔符.
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.


感谢您的回复.
您可以为此提供任何示例代码,以便对我有所帮助.
thanks for the reply.
can u provide any example code for this so that it will be helpful to me.


这篇关于创建名称为系统日期的文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆