Created
February 28, 2018 10:01
-
-
Save niklas88/fde62743a8a3f22dbaa8e3170004c82d to your computer and use it in GitHub Desktop.
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
#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