Skip to content
VUBuddy

CS609 Assignment 1 Solution Spring 2026

System Programming Lesson 36: More on File and Directory Attributes 20 marks No solution

About CS609 Assignment 1

CS609 Assignment No 1 for Spring 2026 is from System Programming. It covers lesson 36: More on File and Directory Attributes, carries 20 marks and closed on VULMS on Thursday 5 November 2026. No solution was added before it closed.

Course
CS609 System Programming
Assignment
Assignment No 1
Semester
Spring 2026
Lesson
36: More on File and Directory Attributes
Total marks
20
End date
Thu 5 Nov, 11:59 pm

What CS609 Assignment 1 asks

This assignment requires the development of a C or C++ program to analyze text files using Windows API functions. Students must implement a system that prompts the user for a file path, opens the file in read-only mode, and displays its contents on the console. The program must handle files larger than the buffer size by reading them in multiple operations. Finally, the solution must calculate and output the total number of bytes read from the file.

  1. Program Implementation

    20 marks

    Develop a program using Dev-C++ that includes windows.h and a specific comment header. Use CreateFile with GENERIC_READ and OPEN_EXISTING to open the file, and ReadFile to process the content in chunks until the end of the file. The program must display the file contents on the console, report the total byte count, and close the file handle using CloseHandle. Include error handling to display a message if the file cannot be opened.

What to submit
One .c or .cpp source file.
Topics covered
Windows API File handling Buffer management System programming Console I/O

A summary of the assignment file, Fall 2026_CS609_1.docx. Download the file for the full wording before you start.

Lesson covered

Lesson 36: More on File and Directory Attributes CS609 · System Programming

The questions in this assignment come from this lesson. Read it in the CS609 handout before you open the assignment file, then practise it with the MCQs and past papers.

Solution

No solution was added before this assignment closed. The assignment file stays here so you can revise lesson 36.

Before you submit on VULMS

  1. 1 This assignment closed without a solution. Use the assignment file to revise lesson 36 before your exams.
  2. 2 Write the final answer in your own words. VU checks assignments for copying, and copied work gets zero marks.
  3. 3 Save your answer in the file type the assignment file asks for, and name it with your student ID, for example BC260012345.
  4. 4 Open the file once more to check it is not empty or corrupted, then upload it on VULMS before 11:59 pm on Thu 5 Nov.

Questions about this assignment

When is CS609 Assignment 1 due?

It closed on Thursday 5 November 2026. VULMS no longer accepts files for it, but the assignment stays here for revision.

Will a solution be added?

No. Solutions are written only while an assignment is open on VULMS, and this one closed on Thursday 5 November 2026. The assignment file stays here for revision.

Can I submit the solution as it is?

No. VU checks assignments for copying, and copied work gets zero marks. Use the solution to check your method, then write your own answer.

What file do I submit?

The assignment file says which file type to upload and lists any extra instructions from your instructor. Name the file with your student ID before you upload it on VULMS.

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.