Subversion Repositories HomeAutomation

Rev

Rev 1596 | Rev 1914 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1596 Rev 1601
Line 41... Line 41...
41
 
41
 
42
}
42
}
43
 
43
 
44
void Node::LoadFile(std::string filename)
44
void Node::LoadFile(std::string filename)
45
{
45
{
46
    std::ifstream srcfile(filename.c_str());
46
    std::ifstream srcfile(filename.data());
47
       
47
       
48
    if (!srcfile.is_open())
48
    if (!srcfile.is_open())
49
    {
49
    {
50
        srcfile.close();
50
        srcfile.close();
51
        throw std::runtime_error("Could not find " + filename);
51
        throw std::runtime_error("Could not find " + filename);