Solved

Only read files

Posted on 1998-05-21
1
130 Views
Last Modified: 2010-04-06

HOw can i know when an file is an only reading file?

:) Thanks!
0
Comment
Question by:suetonio
1 Comment
 
LVL 1

Accepted Solution

by:
Socrates050697 earned 40 total points
ID: 1347100
use FileGetAttr as follows


  if (FileGetAttr('myfile.xxx') and faReadOnly)>0 then
    ShowMessage('is read only')
  else
    ShowMessage('not read only');



Socrates
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question