To read a file into a bytearray in C# and VB.NET you can use the following snippet.
Sample C#
var bytes = System.IO.File.ReadAllBytes(fileName);
Sample VB.NET
Dim bytes = System.IO.File.ReadAllBytes(fileName)
All the Code Snippets and Samples you need
To read a file into a bytearray in C# and VB.NET you can use the following snippet.
var bytes = System.IO.File.ReadAllBytes(fileName);
Dim bytes = System.IO.File.ReadAllBytes(fileName)
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to read a file into a bytearray in .NET http://t.co/ffjBVNVRhZ #programming #dotnet #csharp #vb