Thursday, February 4, 2010

how to read FIle from hard disk

FileStream fs = new FileStream(Server.MapPath("aatish.txt"), FileMode.Open);
byte[] data = new byte[fs.Length];
fs.Read(data, 0, data.Length);
fs.Close();

No comments:

Post a Comment