Click here to Skip to main content
13,046,184 members (57,794 online)
Click here to Skip to main content

Tagged as


Posted 16 Mar 2013

Convert half empty byte array to string?

, 16 Mar 2013
Hello Codeproject,Let's assume I have a byte array as follows:byte[] MainArray = new byte[4096];I then make another array out of a string:byte[] String = Encoding.ASCII.GetBytes("hello world");I then copy that array to the main array:Array.Copy(String, 0, MainArray, 0,...



Compare Revision Minor Date Status Editor
3 - publicly available No 16-Mar-13 7:48 Available ProgramFOX
Code block added
2 No 16-Mar-13 5:37 Available Yvar Birx
Updates in content. 2 changes had been made.
1 No 16-Mar-13 5:34 Available Yvar Birx


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Yvar Birx
Netherlands Netherlands
Yvar Birx;

I am fifteen years old and studied coding for about three years. I mostly code in C#, but I also have coded in Java and Visual Basic.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 16 Mar 2013
Article Copyright 2013 by Yvar Birx
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid