Last active
March 2, 2017 22:59
-
-
Save eXpl0it3r/cdf7cbf6874a12c6bc627c3b13689f52 to your computer and use it in GitHub Desktop.
sf::FileInputStream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sf::FileInputStream stream; | |
stream.open("arial.ttf"); | |
std::vector<char> data(static_cast<std::size_t>(stream.getSize()), 0); | |
stream.read(data.data(), stream.getSize()); | |
std::string str(data.data(), data.size()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment