Mensaje    Asunto: Tamaño de un Archivo y última modificación Responder citando

Código:

    unsigned long nSize;
    AnsiString sModif;


    //nsize y modif------------
    if (FileExists(sFileMon)) {
        sModif = FileDateToDateTime(FileAge(sFileMon));
        int handle;

        handle = open(sFileMon.c_str(), O_RDONLY);
        nSize = filelength(handle);

        /* close the file */
        close(handle);
    }
    else {
        nSize = -1;
        sModif = "Archivo inexistente";
    }
    //------------


atte

_________________
Adrián

http://adrian.org.ar