codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
QFile file(fileName); if(!file.open(QIODevice::ReadOnly)) { QMessageBox::information(this, tr("Unable to open file"), file.errorString()); return; } QDataStream in(&file); QString str; in >> str; std::stringstream stream; stream << str.toStdString(); YAML::Parser parser(stream); YAML::Node doc; std::map< std::string, std::string > entry; parser.GetNextDocument(doc);
Private
[
?
]
Run code
Submit