binary to ascii
i have a binary file and a structure (containing int,char variables)
i have to include my structure in in file and then totally convert it into ASCII file..
how can i convert it?
[186 byte] By [
avik.tcs] at [2007-11-11 10:12:26]

# 1 Re: binary to ascii
you can write your struct out easily in text, simply use text output on each field instead of writing the struct or its fields in a binary way. The << operator on a file stream is text while .write function call is binary. As for converting your existing file to text, you have to know what it contains to do so. You will have to load it and re-write it in text, based on what the file contains.
jonnin at 2007-11-11 20:59:16 >
