SlideShare a Scribd company logo
1 of 16
Download to read offline
FILE SYSTEM
By Didar Hussain
Bacha Khan University Charsadda
By Didar Hussain
 FILE CONCEPT
 FAT-16
 FAT-32
 NTFS
 REISER FILE SYSTEM
 JOURNALING FILE SYSTEM
 FILE STRUCTURE
 FILE ACCESS
 FILE OPERATIONS
By Didar Hussain
CONTENTS
FILE CONCEPT
 All computer applications need to store and retrieve information.
 While a process is running, it can store a limited amount of
information within its own address space.
 However, the storage capacity is too small for some applications
such that corporate record keeping etc.
 Magnetic disks, optical disks and tapes are used for this long-term
storage, but they have much lower performance
By Didar Hussain
FILE CONCEPT
 So to overcome these problems the concept of files are come.
 Files are logical units of information created by processes.
 A disk will usually contains thousands or even millions of them,
each one independent of the others.
 Files are managed by the operating system.
 How they are structured, named, accessed, used, protected, and
implemented.
By Didar Hussain
FAT-16, FAT-32 AND NTFS
 All current operating systems allow strings of one to eight letters as
legal file names.
 Frequently digits and special characters are also permitted like 2,
urgent!, and Fig.2-14 etc.
 Many file systems support names as long as 255 characters.
 UNIX falls in the first category; MS-DOS falls in the second.
 UNIX was case sensitive while MS-DOS was not case sensitive.
By Didar Hussain
FAT-16, FAT-32 AND NTFS
 In MS-DOS, for example, file names are 1 to 8 characters, plus an
optional extension of 1 to 3 characters.
 In UNIX, the size of the extension, if any, is up to the user, and a file
may even have two or more extensions, as in homepage.html.zip
 Windows 95 and Windows 98 both use the MS-DOS file system,
called FAT-16.
 Windows 98 introduced some extensions to FAT-16, leading to FAT-
32, but these two are quite similar.
By Didar Hussain
FAT-16, FAT-32 AND NTFS
 In addition, Windows NT, Windows 2000, Windows XP, and
Window Vista(WV) support both FAT file systems called NTFS.
 So they have a native file system(NTFS) therefore also called NT
based operating system.
 (NTFS) has different properties (such as file names in Unicode)
By Didar Hussain
REISER FILE SYSTEM
 NTFS has an extensive journaling system and its structure is rarely
corrupted by system crashes.
 It has been in development since its first release with Windows NT
in 1993.
 The first Linux file system to do journaling was called ReiserFS, but
its popularity was impeded by the fact that it was incompatible with
the standard ext2 file system, ex2 compatible with ext3, which is
also a journaling but it was less ambitious project than ReiserFS.
 So in simple words we can say the reiser file system was the first
file system which support the journaling file system at first time.
By Didar Hussain
JOURNALING FILE SYSTEM
 The basic idea here is to keep a log of what the file system is going
to do before it does it, so that if the system crashes before it can do
its planned work, upon rebooting the system can look in the log to
see what was going on at the time of the crash and finish the job.
 Such file systems, called journaling file systems, are actually in use.
 Microsoft's NTFS file system and the Linux ext3 and ReiserFS file
systems use journaling
By Didar Hussain
FILE STRUCTURES
Byte wise Record wise Tree shape
By Didar Hussain
FILE ACCESS
1. Sequence access
 No jumping, will be access from start to end in a sequence
2. Random access
 Processor rapidly can jump from one process to another
By Didar Hussain
FILE OPERATIONS
1. Create
 The file is created with no data. The purpose of the call is to
announce that the file is coming and to set some of the attributes.
2. Delete
 When the file is no longer needed, it has to be deleted to free up
disk space. There is always a system call for this purpose.
3. Open
 Before using a file, a process must open it. The purpose of the
open call is to allow the system to fetch the attributes and list of
disk addresses into main memory for rapid access on later calls.
By Didar Hussain
FILE OPERATIONS
4. Close
 When all the accesses are finished, the attributes and disk
addresses are no longer needed, so the file should be closed to
free up internal table space.
5. Read
 Data are read from file.
6. Write
 Data are written to the file again, usually at the current position.
7. Append
 It can only add data to the end of the file.
By Didar Hussain
FILE OPERATIONS
8. Seek
 For random access files, a method is needed to specify from
where to take the data. One common approach is a system call,
that repositions the file pointer to a specific place in the file.
After this call data can be read from, or written to, that position.
9. Get attributes
 Processes often need to read file attributes to do their work.
10. Set attributes
 Some of the attributes are user settable and can be changed after
the file has been created.
By Didar Hussain
FILE OPERATIONS
11. Rename
 It frequently happens that a user needs to change the name of an
existing file.
By Didar Hussain
ANY QUESTION ?
THANK YOU
By Didar Hussain

More Related Content

What's hot

Ntfs and computer forensics
Ntfs and computer forensicsNtfs and computer forensics
Ntfs and computer forensicsGaurav Ragtah
 
Fat and ntfs
Fat and ntfsFat and ntfs
Fat and ntfsLucky Ali
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating systemtittuajay
 
File system Os
File system OsFile system Os
File system OsNehal Naik
 
Linux and windows file system
Linux and windows  file systemLinux and windows  file system
Linux and windows file systemlin yucheng
 
Resilient file system
Resilient file systemResilient file system
Resilient file systemAyush Gupta
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file systemkeshav546
 
Difference between ntfs and fat32
Difference between ntfs and fat32Difference between ntfs and fat32
Difference between ntfs and fat32proser tech
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
 
Chapter 13 file systems
Chapter 13   file systemsChapter 13   file systems
Chapter 13 file systemsAlvin Chin
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file systemTaaanu01
 

What's hot (18)

Ntfs and computer forensics
Ntfs and computer forensicsNtfs and computer forensics
Ntfs and computer forensics
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Fat and ntfs
Fat and ntfsFat and ntfs
Fat and ntfs
 
FAT vs NTFS
FAT vs NTFSFAT vs NTFS
FAT vs NTFS
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
File system Os
File system OsFile system Os
File system Os
 
File system
File systemFile system
File system
 
Linux and windows file system
Linux and windows  file systemLinux and windows  file system
Linux and windows file system
 
Resilient file system
Resilient file systemResilient file system
Resilient file system
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file system
 
Difference between ntfs and fat32
Difference between ntfs and fat32Difference between ntfs and fat32
Difference between ntfs and fat32
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
File system
File systemFile system
File system
 
Chapter 13 file systems
Chapter 13   file systemsChapter 13   file systems
Chapter 13 file systems
 
Windows File Systems
Windows File SystemsWindows File Systems
Windows File Systems
 
Os
OsOs
Os
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 

Similar to File Systems Explained: FAT, NTFS, Ext3, ReiserFS

FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMSFILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMSKABILESH RAMAR
 
Microsoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMicrosoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMeghaj Mallick
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6Meenakshi Paul
 
File system security
File system securityFile system security
File system securityAmmAr mobark
 
The Storage Systems
The Storage Systems The Storage Systems
The Storage Systems Dhaivat Zala
 
linuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdflinuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdfShaswatSurya
 
2 introduction of storage
2 introduction of storage2 introduction of storage
2 introduction of storageHameda Hurmat
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xpEhtisham Ali
 
Distributed File System
Distributed File SystemDistributed File System
Distributed File SystemNtu
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xpashubhardwaj03
 

Similar to File Systems Explained: FAT, NTFS, Ext3, ReiserFS (20)

FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMSFILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
 
File system
File systemFile system
File system
 
Microsoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMicrosoft Windows File System in Operating System
Microsoft Windows File System in Operating System
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6
 
File system
File systemFile system
File system
 
File system security
File system securityFile system security
File system security
 
The Storage Systems
The Storage Systems The Storage Systems
The Storage Systems
 
linuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdflinuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdf
 
SNAW-Assignment.docx
SNAW-Assignment.docxSNAW-Assignment.docx
SNAW-Assignment.docx
 
Operating System
Operating SystemOperating System
Operating System
 
2 introduction of storage
2 introduction of storage2 introduction of storage
2 introduction of storage
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xp
 
File system
File systemFile system
File system
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
Distributed File System
Distributed File SystemDistributed File System
Distributed File System
 
Seminar 1
Seminar 1Seminar 1
Seminar 1
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xp
 
Windowsforensics
WindowsforensicsWindowsforensics
Windowsforensics
 

Recently uploaded

Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

File Systems Explained: FAT, NTFS, Ext3, ReiserFS

  • 1. FILE SYSTEM By Didar Hussain Bacha Khan University Charsadda By Didar Hussain
  • 2.  FILE CONCEPT  FAT-16  FAT-32  NTFS  REISER FILE SYSTEM  JOURNALING FILE SYSTEM  FILE STRUCTURE  FILE ACCESS  FILE OPERATIONS By Didar Hussain CONTENTS
  • 3. FILE CONCEPT  All computer applications need to store and retrieve information.  While a process is running, it can store a limited amount of information within its own address space.  However, the storage capacity is too small for some applications such that corporate record keeping etc.  Magnetic disks, optical disks and tapes are used for this long-term storage, but they have much lower performance By Didar Hussain
  • 4. FILE CONCEPT  So to overcome these problems the concept of files are come.  Files are logical units of information created by processes.  A disk will usually contains thousands or even millions of them, each one independent of the others.  Files are managed by the operating system.  How they are structured, named, accessed, used, protected, and implemented. By Didar Hussain
  • 5. FAT-16, FAT-32 AND NTFS  All current operating systems allow strings of one to eight letters as legal file names.  Frequently digits and special characters are also permitted like 2, urgent!, and Fig.2-14 etc.  Many file systems support names as long as 255 characters.  UNIX falls in the first category; MS-DOS falls in the second.  UNIX was case sensitive while MS-DOS was not case sensitive. By Didar Hussain
  • 6. FAT-16, FAT-32 AND NTFS  In MS-DOS, for example, file names are 1 to 8 characters, plus an optional extension of 1 to 3 characters.  In UNIX, the size of the extension, if any, is up to the user, and a file may even have two or more extensions, as in homepage.html.zip  Windows 95 and Windows 98 both use the MS-DOS file system, called FAT-16.  Windows 98 introduced some extensions to FAT-16, leading to FAT- 32, but these two are quite similar. By Didar Hussain
  • 7. FAT-16, FAT-32 AND NTFS  In addition, Windows NT, Windows 2000, Windows XP, and Window Vista(WV) support both FAT file systems called NTFS.  So they have a native file system(NTFS) therefore also called NT based operating system.  (NTFS) has different properties (such as file names in Unicode) By Didar Hussain
  • 8. REISER FILE SYSTEM  NTFS has an extensive journaling system and its structure is rarely corrupted by system crashes.  It has been in development since its first release with Windows NT in 1993.  The first Linux file system to do journaling was called ReiserFS, but its popularity was impeded by the fact that it was incompatible with the standard ext2 file system, ex2 compatible with ext3, which is also a journaling but it was less ambitious project than ReiserFS.  So in simple words we can say the reiser file system was the first file system which support the journaling file system at first time. By Didar Hussain
  • 9. JOURNALING FILE SYSTEM  The basic idea here is to keep a log of what the file system is going to do before it does it, so that if the system crashes before it can do its planned work, upon rebooting the system can look in the log to see what was going on at the time of the crash and finish the job.  Such file systems, called journaling file systems, are actually in use.  Microsoft's NTFS file system and the Linux ext3 and ReiserFS file systems use journaling By Didar Hussain
  • 10. FILE STRUCTURES Byte wise Record wise Tree shape By Didar Hussain
  • 11. FILE ACCESS 1. Sequence access  No jumping, will be access from start to end in a sequence 2. Random access  Processor rapidly can jump from one process to another By Didar Hussain
  • 12. FILE OPERATIONS 1. Create  The file is created with no data. The purpose of the call is to announce that the file is coming and to set some of the attributes. 2. Delete  When the file is no longer needed, it has to be deleted to free up disk space. There is always a system call for this purpose. 3. Open  Before using a file, a process must open it. The purpose of the open call is to allow the system to fetch the attributes and list of disk addresses into main memory for rapid access on later calls. By Didar Hussain
  • 13. FILE OPERATIONS 4. Close  When all the accesses are finished, the attributes and disk addresses are no longer needed, so the file should be closed to free up internal table space. 5. Read  Data are read from file. 6. Write  Data are written to the file again, usually at the current position. 7. Append  It can only add data to the end of the file. By Didar Hussain
  • 14. FILE OPERATIONS 8. Seek  For random access files, a method is needed to specify from where to take the data. One common approach is a system call, that repositions the file pointer to a specific place in the file. After this call data can be read from, or written to, that position. 9. Get attributes  Processes often need to read file attributes to do their work. 10. Set attributes  Some of the attributes are user settable and can be changed after the file has been created. By Didar Hussain
  • 15. FILE OPERATIONS 11. Rename  It frequently happens that a user needs to change the name of an existing file. By Didar Hussain
  • 16. ANY QUESTION ? THANK YOU By Didar Hussain