|
On 10-11-03 09:52 AM, Bilal wrote:
> I'm writing to a file, after reading values from a device.
> The problem i'm getting is the values in the array are written in a long
> format:
>
> if the values are -0.64
> -0.16
> ....
>
> They will be written to the text file as:
> -6.400000e-001
> -1.600000e-001
> ...
>
> How can i have it write just as it was in the array i put it in?
The only general way to do this is to read the values as text from the device,
and to write the exact text out to the file. If the data is converted to
binary at any step, then it becomes impossible to determine whether what you
"put it in" to the array was -0.64 or -0.640 or -6.4E-1 (etc.)
|