Skip to content

Instantly share code, notes, and snippets.

@eXpl0it3r
Last active March 2, 2017 22:59
Show Gist options
  • Save eXpl0it3r/cdf7cbf6874a12c6bc627c3b13689f52 to your computer and use it in GitHub Desktop.
Save eXpl0it3r/cdf7cbf6874a12c6bc627c3b13689f52 to your computer and use it in GitHub Desktop.
sf::FileInputStream
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