The constructor for `std::ifstream' can fail for reasons other than exhausted file descriptors, but if you have exhausted them somehow the problem is not in the code you posted as oogabooga explained.Quote:
Oddly enough I close the file every time I am not sure why I run out of descriptors.
If I were you, I'd take a good long look at how `Load_Sprite' works.
Soma