I tried debugging the program and received the following error First-chance exception at 0x7c59bcb1 in structure-libxml2.exe: Microsoft C++ exception: std::ios_base::failure at memory location 0x0012f898.. at this code ifs.open (argv[1], ios::in | ios::ate);