WIP
[evolve-layout.git] / C / create_dummy_file.cpp
blobf68017968f052e38d24267f1a4adf5ccb5ceb78b
1 #include <sstream>
2 #include <string>
3 #include <fstream>
5 #include <glibmm/ustring.h>
7 #include "Layout.cpp"
9 using namespace std;
10 using namespace Glib;
12 int main(int argc, char **argv) {
13 // dummy neo string
14 Layout neo("# Evolved Layout\nxvlcw khgfqß´\nuiaeo snrtdy\nüöäpz bm,.j\n");
17 ofstream f("test.txt");
19 // print each char on its own line
20 for(Layout::iterator it = neo.begin();
21 it != neo.end(); ++it) {
22 f << '"' << ustring(1, *it).raw() << '"' << endl;
25 f.close();
27 return 0;