Ask coding questions

← Back to all posts
1
Not opening tga image file in binary format C++11
anshuldaga (0)

When I try to open the car.tga in an ios_base::binary format, the file does not open. The file opens normally when the ios_base::binary parameter is not included (i.e. when I'm not opening it in binary form), but as soon as I try to open it in binary, it is not opening. Am I missing something, or is this a situation where Repl does not support that file type, therefore it can't open it as binary?

Thank you in advance!

I have my code in the link above, which runs a test to see if the file is open. You can check that specific code in the ImageProcessing/src/Image.cpp file.