Getting file information

Discussions related to database technologies, file handling, directories and storage
Post Reply
simong42
Posts: 3
Joined: Tue 05 Mar 2019, 20:47

Getting file information

Post by simong42 » Wed 13 Mar 2019, 19:26

I'm trying to access information about a specific file - in particular, the creation date/time.
I can do this by generating a directory listing (thanks to this forum for their help in resolving my "dir /s" query), but for some reason, I get different date/times when looking at the file on different media (rounding / truncation maybe?).

I looked in the online help, and found information about reading through the contents of a directory, and deriving such attributes as creation date/time, but could not see how to get this for a *specific* file.

(And after looking at other threads in this forum, I found this wiki - http://www.bbcbasic.co.uk/wiki/doku.php ... nd_20files - and bookmarked it - but couldn't see an answer to this question there.)

DDRM
Administrator
Posts: 103
Joined: Mon 02 Apr 2018, 18:04

Re: Getting file information

Post by DDRM » Sat 16 Mar 2019, 17:21

Hi Simon,

The technique shown in the manual under "Listing the disk directory" should allow you to find what you need?

Best wishes,

D

Post Reply