I have a text file on a remote box, that I want to fetch over http, and place into a byte array.
The remote file looks like this:
byte[] buf = new byte[510] { 0xfc,0x48,0x83,0xe4,0xf0,0xe8,0xcc,...};
I can modify it to a format that would be easier to handle.
I have tried
WebClient wc = new WebClient();
buf = wc.DownloadData("http://ip/csharp.txt");
What's the best way of going about this? Note I'm not looking to convert the text to bytes, I'm looking for c# to interpret the bytes already in the text file, and place them in a byte array.