Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null character setting in.fail() to 1.

Status
Not open for further replies.

pipk

Programmer
Feb 20, 2001
455
GB
Hello,

Apologies if this is a really basic question (I am afraid I am a really basic user!!).

I have written a program which "processes" (simple read-in write-out stuff) image files of type .ppm and .pgm.
This program runs fine on Linux (compiled with g++) but when i run it on W98 (compiling using VC++ v6) it bombs out at the first null character in the file with a failed bit status. I am reading the image file using in_file.get(character_field). Is this a VC++ quirk or is it just operating system features?

I would love a version that runs on both platforms.

Many thanks in advance.

pipk (UK)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top