Fall 2024 - CS609 - 2
Fall 2024 - CS609 - 2
Instructions:
Please read the following instructions carefully before submitting an assignment. It should be
clear that your assignment will not get any credit if:
1. You must use Dev-C++ for developing this assignment. If your program does not compile
in Dev-C++ then you would get zero marks.
2. You need to upload the following file only:
(i) .C file (C language source file containing code)
3. Any other file type (.docx, .CPP, .txt, .pdf, .jpeg, .gif) shall not be acceptable and you
would get zero marks for this.
Objectives:
The objective of this assignment is to introduce students to handling file timestamps using the
Windows API. Students will retrieve and display the creation, last access, and last write times
of a file. Additionally, they will modify the last write time to the current system time.
Topics Covered:
37 to 57
Assignment Title: Displaying and Updating File Timestamps
Problem Statement: Write a C-language program using the Windows API to retrieve and display the
creation, last access, and last write times of a file. Additionally, it should also modify the last write
time to the current system time.
Requirements:
1. Program Functionality:
o Accept the file path as input.
o Retrieve and display the following timestamps for the file:
Creation Time
Last Access Time
Last Write Time
o Update the Last Write Time to the current system time.
o Display the updated Last Write Time.
2. Input and Output:
o Input: File path provided by the user.
o Output:
Original timestamps (Creation, Last Access, Last Write).
Confirmation of updated Last Write Time.
Sample Output:
(given on next page)
Note:
You should print your student ID at the top of output screen. You will be awarded zero marks if
the student ID is missing or not yours.
In case of any assignment related query, please do not post any question on MDB. Contact at
[email protected] for asking assignment related questions.
---BEST OF LUCK---