Remove a possibly dodgy use of fstream.
[libdcp.git] / test / subs_in_out.cc
1 #include <iostream>
2 #include "subtitle_asset.h"
3
4 using namespace std;
5
6 int main (int argc, char* argv[])
7 {
8         if (argc < 2) {
9                 cerr << "Syntax: " << argv[0] << " <subtitle file>\n";
10                 exit (EXIT_FAILURE);
11         }
12         
13         libdcp::SubtitleAsset s ("foo", "bar", "baz");
14         s.read_xml (argv[1]);
15         cout << s.xml_as_string ();
16         return 0;
17 }