Lock file

Hi,
I want lock a file for limited time.
and The user can enter limited time and address file.
I want use API.
Please help me.
What i do? can you give me one sample?
Topic archived. No new replies allowed.