使用c处理文件 [英] file handling using c

查看:64
本文介绍了使用c处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望源程序使用c隐藏任何类型的文件.

I want a source program to hide a any kind of file using c.

推荐答案

您可以使用DOS命令执行此操作
You can do by using DOS command like this
System("attrib fileName +s +h");



或通过调用SetFileAttributes并设置FILE_ATTRIBUTE_HIDDEN标志.请参阅 http://msdn.microsoft.com/en-us/library/aa365535 %28VS.85%29.aspx



Or by calling SetFileAttributes and setting the FILE_ATTRIBUTE_HIDDEN flag. See http://msdn.microsoft.com/en-us/library/aa365535%28VS.85%29.aspx


这篇关于使用c处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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