864_____________________________________________ 14

st_size           

st_atime         ( Windows)   ( DOS)

st_mtime      ,  st_atime

st_ctime       ,  st_atime

 st_mode        
   .

      :

S_IFCHR          
S_IFREG           

       :

S_IWRITE        
S_IREAD         

 HPFS  NTFS      st_ati-
me, st_mtime  st_ctime:

st_atime          
st_mtime         
st_ctime         

     stat:

#include <stdio.h>
ftinclude <time.h>

#include <sys\stat.h>

struct stat statbuf;

FILE *stream;

if ((stream = fopen("TEST.TXT", "r+t")) == NULL)
{

ShowMessage("  ");

return;

}

stat("TEST.TXT", sstatbuf);              //  

fclose(stream) ;

//  :

if (statbuf.st_mode & S_IFCHR)

Memol->Lines->Add(" ");

if (statbuf.st_mode & S_IFREG)

Memol->Lines->Add("  ");

if (statbuf.st_mode & S_IREAD)

Memol->Lines->Add("   ");

if (statbuf.st_mode & S_IWRITE)

Memol->Lines->Add("   ");

Memol->Lines->Add("    " +

AnsiString((char)('A'+statbuf.st_dev))) ;

Memol->Lines->Add("   : " +