Thanks for your answer.
I'm sorry if i didn't explain myself well.
I'm opening the file in binary:
|
ifstream file (datafile[i], ios::in|ios::binary|ios::ate);
|
And when you do that, all that you see are bytes. For instance, when you open an image file (or text one, it doesn't matter) using a hex editor, usually you can see in the right side the ASCII characters, and in the left side the hex values. What i want is to use the double signed values of this hex numbers.
Let's say you read from a file the following hex values: FF, D8, FF, E0, 00. Its corresponding "signed integer" values are: -1, -40, -1, -32, 0.
I want to use that values, but in "signed double" format for arithmetic operations, but when i read from a file i have it the all file in memory but in char format, and this is the problem that i'm having.
I hope this time my explanation is clearer than before.
Really appreciate your comments and suggestions.