0% found this document useful (0 votes)
35 views3 pages

Fall 2024 - CS609 - 2

cs 609 assignment 2

Uploaded by

1jaanali676
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views3 pages

Fall 2024 - CS609 - 2

cs 609 assignment 2

Uploaded by

1jaanali676
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Fall 2024 Total Marks:

CS609: System Programming 20


Assignment No. 02 Due Date:
23
November
2024

Instructions:
Please read the following instructions carefully before submitting an assignment. It should be
clear that your assignment will not get any credit if:

▪ The submitted assignment does not open or the file is corrupt.


▪ You have not fulfilled all the requirements described in problem statement.
▪ Assignment is copied (partial or full) from any source (websites, forums, students,
etc.). Strict action will be taken in this regard.
Submission Guidelines:

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---

You might also like