K
Koulbak
I have some unicode (utf8) text file. I _tried_ to write a simple
program that read one of them and write it to the standard output but...
of course it doesn't work. There is an easy way to do it? Thanks, K.
This is my program.
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main(){
ifstream infile ("in.txt");
string s;
while (infile >> s) {
cout << s;
}
}
program that read one of them and write it to the standard output but...
of course it doesn't work. There is an easy way to do it? Thanks, K.
This is my program.
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main(){
ifstream infile ("in.txt");
string s;
while (infile >> s) {
cout << s;
}
}