Professional Documents
Culture Documents
Lab Sheet-3 2
Lab Sheet-3 2
Assignment ID
Submission
(as per the Lab Submission Assessment Group/ Weightage-
Date of Deadline
policy Assignment Mode- Method- Individual- Non
Release (Date and
guidelines) - Title- Lab-3 OnLine Grading Individual Graded
time)
03
Download this document and solve them during the laboratory time.
Insert SAPID and NAME at the top of the sheet before submission
ISHA NIGAM
1000018919
Objective – Study system calls open(), file descriptor and file modes. Write
a program using open() system call to read the first 10 characters of an
existing file “test.txt” and print them on screen.
Code –
Text File -
Laboratory Assignment Sheet
Output-