writing ascii files (with really long lines...) [message #34303] |
Fri, 28 February 2003 17:09 |
CelticBlues
Messages: 10 Registered: February 2003
|
Junior Member |
|
|
I have an image which I need to dump to an ascii file.... yes, it has to be
ascii. Before any suggestions concerning an alternate output format are
made, let me say that I am stuck with this format. But I wish it were other
wise. The images are 148 rows x 1092 columns and what I output will be
floating point values.
I know that the program that will read this text file, expects to be able to
read an entire row, and only one row, of the data, at a time. It uses MFCs
CStdioFile::ReadString to read one line at a time then does a sscanf on it
to get the data out of the string. I can't change how this code reads the
file in either.....
My question is ... can I do this and if so ...how? I have tried various
methods, but each seems to wrap the line.
If I write the values,
Ed
|
|
|