Skip to content

Instantly share code, notes, and snippets.

@niklas88
Created February 28, 2018 10:01
Show Gist options
  • Save niklas88/fde62743a8a3f22dbaa8e3170004c82d to your computer and use it in GitHub Desktop.
Save niklas88/fde62743a8a3f22dbaa8e3170004c82d to your computer and use it in GitHub Desktop.
#include <iostream>
#include <experimental/filesystem>
#include <fstream>
namespace fs = std::experimental::filesystem;
int main() {
fs::path path = u8"猫.txt";
std::cout << "path = " << path << std::endl;
std::ifstream input(path);
for(std::string line; std::getline(input, line);) {
std::cout << line << std::endl;
}
input.close();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment