Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The OpenInsight dir() function returns the file size, the date of last update, and the time of last update, for a specified file.  Sometimes Sometimes it is necessary to find out other attributes of the file, such as whether it is read-only, whether the archive bit is set, or whether it is a directory.  At At other times, it might be necessary to set these bits.  For For example, you might want a file containing privileged information to be hidden.

The next topic will explain how to read the attributes of a file, using the Windows API function GetFileAttributes().  The The topic after that will explain how to change the attributes of a file, using the Windows API function SetFileAttributes().