summaryrefslogtreecommitdiff
path: root/tests/tinyxml/test1.cpp
blob: 4e923efff09b3bb4c81413929d79fa7f7a763f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#include <iostream>
#include <fstream>

using namespace std;

int main( int argc, char *argv[] )
{
	if( argc != 2 ) {
		cerr << "Usage: test1 <XML file>\n" << endl;
		return 1;
	}
	
	char *xmlFileName = argv[1];
		
	ifstream xmlFile( xmlFileName );
	if( !xmlFile.good( ) ) {
		cerr << "ERROR: Can't open file '" << xmlFileName << "'" << endl;
		return 1;
	}
}