FileStream fs = new FileStream(Filepath, FileMode.Open, FileAccess.Read); fileLen = Convert.ToInt32(fs.Length); Data = new byte[fileLen]; fs.Read(Data, 0, fileLen); fs.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)