[ create a new paste ] login | about

Link: http://codepad.org/zBWsUU7L    [ raw code | fork ]

C++, pasted on Feb 2:
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);


Create a new paste based on this one


Comments: