Ok, so there is a place where the code is being converted into ASCII standard, and then being converted back I believe. I think I know how to do it, but I wanted to get help to make sure that when i am testing for bugs later that this isn't the mistake I made.
This is the original code. (data is a std::vector<char>)
var file = System.Text.Encoding.ASCII.GetString(data);
and this is what I made.
long unsigned int fileTempSize = data.size();
char *fileTemp = new char[fileTempSize];
for (int i = 0; i < data.size(); i++)
fileTemp[i] = data.at(i);
std::string file (fileTemp);
Is this valid? If it is then how would I convert it back to the ASCII standard? Is there an easier way that I can go about this? Ty :)