try something like this
string filename = @"c:\temp\test.txt"; byte[] bytes = File.ReadAllBytes(filename); List<byte> buffer = new List<byte>(BitConverter.GetBytes((ulong)(bytes.Count()))); buffer.AddRange(bytes);
jdweng
No comments:
Post a Comment