Notepad on-line
FileStream fs = myfileInfo.OpenRead(); int bytesCount =(int)fs.Length;byte[] bytes = new byte[bytesCount];int bytesRead = fs.Read(bytes, 0, bytesCount);fs.Close();
byte[] bytes = System.IO.File.ReadAllBytes(myfileInfo.FullName);
I always forget about the File.ReadAllBytes method. Thanks for posting this!
Post a Comment
1 comment:
I always forget about the File.ReadAllBytes method. Thanks for posting this!
Post a Comment