How to get the creation date of a C # file [closed]

1

I have a web system in C # and I am using framework 4.5 that accesses a firebird database that is on a server, I am making the connection to this database normally.

Now I need to access the creation date of this file, I'm using the following method:

    static public DateTime PegarDataCriacaoBD (string caminhoBD)
        {
            DateTime dataCriacao = new DateTime();

            FileInfo arquivo = new FileInfo(caminhoBD);
            dataCriacao = arquivo.CreationTime;

            return dataCriacao ;
}

This method works perfectly, the issue is that I need to access a file that is on a given IP on a given port eg 197.152.365.14 on port 3050 and the database path is C:\Sistema\Sistema.FDB , not I am getting access to the file that is on this IP.

    
asked by anonymous 04.06.2016 / 00:52

0 answers