Hi there! How are you?
My problem is fairly simple for those used to CLI programming!
I basically have an "unsigned char" type array that I need to dump to a file and later be able to read it back, like an EEPROM memory. It's quite simple, but I am having difficulty to find the information on how that could be accomplished. I tried to use StreamWriter but I did not succeed. The code bellow compiles, but all I get is the "System.Byte" message on the created file...
Edit: And ah! After I succeed writing it, how to read it back??Code:array<unsigned char>^ array3 = gcnew array<unsigned char>(8); array3=10; array3=77; array3=24; array3=56; array3=17; array3=76; array3=72; array3=05; String^ fileName = "textfile.txt"; StreamWriter^ sw = gcnew StreamWriter(fileName); sw->Write(array3); sw->Close();
Any help will be greatly appreciated!