Hi everyone,
I have been trying to convert an integer into a string, and that integer will be the name of the file. This is the solution I have so far.. but it's not dynamic and it can't exceed 50 !.. I want a string that will fit exactly the integer I am converting.. Any Ideas?
char HashIdx [50]; // <--- I want that to be dynamic.. not fixed to 50 in size.
sprintf (HashIdx, "%i.idx", Hash);
ofstream out(HashIdx, ios:ut | ios::binary);
Thanks in advance,
Ed.