Tuesday, June 30, 2009

Write text file from the byte[]

public static void WriteFileStreamFromArray(string FilePath, byte[] b)
{


FileStream fs = null;

try
{

fs = new FileStream(FilePath,FileMode.Append);

fs.Write(b, 0, b.Length);

}
finally
{
fs.Close();
}


}

No comments:

Post a Comment

 
Locations of visitors to this page