Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VS 2010 [RESOLVED] file to hex and back to file

$
0
0
I have been messing with readallbytes/writeallbytes...

I saw this function from a previous post.. to convert a file to its hex values
Code:

RichTextBox1.Text = String.Join("", IO.File.ReadAllBytes("File Path here").Select(Function(b) b.ToString("X2")).ToArray())
What would be the easiest way to now have it re-write those bytes from Hex back to the original bytes and save it as a file..???

thanks

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>