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

Viewing 1 reply thread
  • Author
    Posts
    • #2230
      Archie7891
      Participant

      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
      Participant

      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

Viewing 1 reply thread
  • The forum ‘C Programming’ is closed to new topics and replies.