Re: Writing several images into a single binary file
- From: Giff <giffnews@xxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 23:17:04 +0200
rossum wrote:
When reading the file check for an empty line where the image should
start and take action accordingly.
Well, before the image there is an empty line, and I use a function to ignore up to 1000 empty lines. This function works all the times but when this ghost line shows up from nowhere...
this is the function:
void skipEmptyLines( std::istream& is )
{
char next = is.peek();
while( next == '\n' ) {
is.ignore( 10000, '\n' );
next = is.peek();
}
}
.
- References:
- Writing several images into a single binary file
- From: Giff
- Re: Writing several images into a single binary file
- From: rossum
- Writing several images into a single binary file
- Prev by Date: Re: Writing several images into a single binary file
- Next by Date: Re: New language idea - you guys have any feedback?
- Previous by thread: Re: Writing several images into a single binary file
- Next by thread: Re: Writing several images into a single binary file
- Index(es):
Relevant Pages
|