How can we know whether a file is read or not

Home Forums C Programming How can we know whether a file is read or not

This topic contains 1 reply, has 2 voices, and was last updated by  Chandra3993 7 years, 9 months ago.

  • Author
    Posts
  • #2230

    Archie7891
    Member

    how can we know whether a particular file is read or not using c programming.

    for an example:

    the file name = abcd.txt

    the status of the file should be 0 if the person has not opened it and it should be changed to 1 after any one reads it

    how can we do this

  • #3611

    Chandra3993
    Member

    Straight way you can not check the file is read or not.
    For specific number of days or epoch seconds you can check

    Here I have written the program for checking file is read in last 2 days

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble