reset password
Author Message
Tanko24
Posts: 8
Posted 13:44 Mar 01, 2014 |

when we are writing in binary mode how do we prevent from the output putting in a extra line feed ??

kknaur
Posts: 540
Posted 13:53 Mar 01, 2014 |

Double check when you are reading.  I think I had this issue and it occurred during the reading of the binary data.  Basically when you read in the maxVal line, you still have a linefeed character stored in the input buffer.  You need to ignore this character, otherwise I think it will be read as the first character of your raster array which you do not want.  Remember to use the ignore() function in this case.
 

Tanko24
Posts: 8
Posted 14:00 Mar 01, 2014 |

thank you that helped!!