#import <Foundation/Foundation.h>

int main (int argc, char *argv[])
{
  if (argc != 2) {
    fprintf(stderr, "Exactly one filename argument is required.");
    return 1;
  }

  {
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    NSString *filename, *data, *description;
    id plist;

    filename    = [NSString stringWithUTF8String:argv[1]];
    data        = [NSString stringWithContentsOfFile:filename encoding:NSUTF8StringEncoding error:NULL];
    plist       = [data propertyList];
    description = [plist description];

    printf("%s\n", [description UTF8String]);

    [pool release];
  }

  return 0;
}
