SOL9 Sample: FileAttributes

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * FileAttributes.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL9
// 2008/09/15
// 2009/11/11 Modified to use Locale class.

#include <sol/FileAttributes.h>
#include <sol/Locale.h>

void _tmain(int argc, TCHAR** argv)
{
  if (argc != 2) {
    _tprintf(_T("Usage:FileAttributes.exe fileName\n"));
    return;
  }
  //2009/11/11
  Locale locale;

  try {
    const TCHAR* fileName = argv[1];

    FileAttributes attrs(fileName);

    attrs.display();


  } catch (...) {
    printf("Exception \n");
  }
}

Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.