When I read the data into the array it is fine, but when I write it to the console it becomes a bunch of numbers. I think it has something to do with the console not accepting managed arrays. Any idea?
1 2 3 4 5 6
array<unsignedchar, 1>^ buffer = gcnew array<unsignedchar, 1>(fs->Length);
fs->Read(buffer, 0, fs->Length);
for (int i = 0; i < buffer->Length; i++)
{
Console::Write(buffer[i]);
}
EDIT: I just noticed it is writing the decimal form of the ASCII data. How do I convert it from int to char? I tried casting but it doesn't work.