Thursday, August 18, 2011

Create a file in invisible mode in .NET.

It is possible to create a file in invisible mode using System.IO namespaces.By using attribute property we can
hide the files.Write the below code,you can see the magic of it..

using System;
using System.IO;


protected void Page_Load()
{
FileInfo fileinfo = new FileInfo ("Give your file name here,Give your file Mode");
fileinfo.Attributes = FileAttributes.Hidden;
}