You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
at first sight, the constructor of mINI::INIFile only accepts path to a file.
Could it be possible to pass in your own stream (like a std::stringstream) or just an std::string with content instead of a file path?
It seems that the library is hardcoded to use std::ifstream and std::ofstream, which are handled internally and can't be changed.
Please let me know if I'm missing something or this is unsupported.
Kind regards.
The text was updated successfully, but these errors were encountered:
bramtechs
changed the title
No support for reading from a stringstream?
No support for reading from stringstream or char buffer?
Jun 27, 2024
Hey. Yeah it only supports a file interface, a stream interface could in theory be implemented. If you make a good enough implementation for it make a PR and I'll consider merging it in. Personally I simply never use it with streams so I have little incentive to implement it myself.
Hello,
at first sight, the constructor of mINI::INIFile only accepts path to a file.
Could it be possible to pass in your own stream (like a std::stringstream) or just an std::string with content instead of a file path?
It seems that the library is hardcoded to use std::ifstream and std::ofstream, which are handled internally and can't be changed.
Please let me know if I'm missing something or this is unsupported.
Kind regards.
The text was updated successfully, but these errors were encountered: