SlideShare a Scribd company logo
File Management – File Concept, access methods,  File types and File Operation
File Management – File Concept,
access methods, File types and
File Operation
 Introduction to File and File Management
 File Access Methods
 File Types
 File Operations
 A file is a unit of storing data on a secondary
storage device such as a hard disk or other
external media.
 Every file has a name and its data. Operating
system associates various information with
files. For example the date and time of the last
modified file and the size of file etc.
 This information is called the file’s attributes or
metadata.
File Access
Sequential Random
 In Sequential access, process could read all the
bytes or records from a file in order, starting at
the beginning, but could not skip around and
read them out of order.
 Sequential files could be rewound, however, so
they could be read as often as needed.
 These files were convenient when the storage
medium was magnetic tape or CD-ROM.
 Files whose bytes or records can be read in any
order are called random access files.
 Random access files are essentials for many
applications, for example, data base systems.
 If an airline customer calls up and wants to
reserve a seat on a particular flight, the
reservation program must be able to access the
record for that flight without having to read the
records for thousands of other flights.
File Type
Regular
Files
ASCII Files
Binary
Files
Directories
 Regular files are the ones that contain user
information.
 Regular file, as a randomly accessible sequence
of bytes, has no other predefined internal
structure.
 Application programs are responsible for
understanding the structure and content of any
specific regular file.
 ASCII file consists of line of text.
 Advantage of ASCII files is that they can be
displayed & printed as it is & they can be edited
with ordinary text editor.
 If number of programs use ASCII files for input
and output, it is easy to connect the output of
one program to the input of another.
 C/C++/Perl/HTML files are all examples of ASCII
files.
 Binary files contain formatted information that
only certain applications or processors can
understand.
 Binary files must be run on the appropriate
software or processor before humans can read
them.
 Executable files, compiled programs,
spreadsheets, compressed files, and graphic
(image) files are all examples of binary files.
 Directories are system files for maintaining the
structure of the file system.
 To keep track of files, file systems normally have
directories or folder.
 File exists to store information and allow it to
be retrieved later.
 Different system provides different operations
to allow storage and retrieval.
 The most common system calls are shown
below.
 Create
The purpose of the call is to announce that the
file is coming and to set some attributes.
 Delete
When the file is no longer needed, it has to be
deleted to free up disk space.
 Open
The purpose of the open call is to allow the
system to fetch the attributes.
 Close
When all accesses are finished, the attributes and
disk addresses are no longer needed, so the file
should be closed to free up table space.
 Read
Data are read from file. Usually the bytes come from
the current position.
 Write
Data are written to the file, usually at the current
position.
 Append
This call is restricted form of write. It can only
add data to the end of file.
 Seek
For a random access files, a method is needed to
specify from where to take the data. Seek
repositions the file pointer to a specific place in
the file.
 Get attributes
Processes often need to read the file attributes
to do their work.
 Set attributes
Some of the attributes are user settable and can
be changed after the file has been created. This
system call makes that possible.
 Rename
It frequently happens that a user needs to
change the name of an existing file. This system
call makes it possible.
 Inspiration from Prof. Tejas Bhatt and Prof. Bijal
Talati
 Notes of OS
 Textbook of OS
 Images from Google Images
 Some my own Knowledge
File Management – File Concept, access methods,  File types and File Operation
Ad

More Related Content

What's hot (20)

Paging.ppt
Paging.pptPaging.ppt
Paging.ppt
infomerlin
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
Dr Sandeep Kumar Poonia
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
tittuajay
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
Anamika Singh
 
File access methods.54
File access methods.54File access methods.54
File access methods.54
myrajendra
 
Concurrency Control.
Concurrency Control.Concurrency Control.
Concurrency Control.
Amity International Business School
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
Mukesh Chinta
 
Chapter 8 - Main Memory
Chapter 8 - Main MemoryChapter 8 - Main Memory
Chapter 8 - Main Memory
Wayne Jones Jnr
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
Wayne Jones Jnr
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
Wayne Jones Jnr
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System Interface
Wayne Jones Jnr
 
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
DeepikaT13
 
Directory structure
Directory structureDirectory structure
Directory structure
sangrampatil81
 
Demand paging
Demand pagingDemand paging
Demand paging
SwaroopSorte
 
Production system in ai
Production system in aiProduction system in ai
Production system in ai
sabin kafle
 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1
Amir Payberah
 
Basic Block Scheduling
Basic Block SchedulingBasic Block Scheduling
Basic Block Scheduling
NilaNila16
 
Transactions and Concurrency Control
Transactions and Concurrency ControlTransactions and Concurrency Control
Transactions and Concurrency Control
Dilum Bandara
 
Cs8493 unit 3
Cs8493 unit 3Cs8493 unit 3
Cs8493 unit 3
Kathirvel Ayyaswamy
 
7 Deadlocks
7 Deadlocks7 Deadlocks
7 Deadlocks
Dr. Loganathan R
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
tittuajay
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
Anamika Singh
 
File access methods.54
File access methods.54File access methods.54
File access methods.54
myrajendra
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
Mukesh Chinta
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
Wayne Jones Jnr
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
Wayne Jones Jnr
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System Interface
Wayne Jones Jnr
 
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
DeepikaT13
 
Production system in ai
Production system in aiProduction system in ai
Production system in ai
sabin kafle
 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1
Amir Payberah
 
Basic Block Scheduling
Basic Block SchedulingBasic Block Scheduling
Basic Block Scheduling
NilaNila16
 
Transactions and Concurrency Control
Transactions and Concurrency ControlTransactions and Concurrency Control
Transactions and Concurrency Control
Dilum Bandara
 

Similar to File Management – File Concept, access methods, File types and File Operation (20)

file_concept.pptx file presentation directories
file_concept.pptx file presentation directoriesfile_concept.pptx file presentation directories
file_concept.pptx file presentation directories
namrataparopate
 
file_concept.pptx file presentation directories
file_concept.pptx file presentation directoriesfile_concept.pptx file presentation directories
file_concept.pptx file presentation directories
namrataparopate
 
Learn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems pptLearn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems ppt
geethasenthil2706
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
Ankit Dubey
 
FILE MANAGEMENT.pptx
FILE MANAGEMENT.pptxFILE MANAGEMENT.pptx
FILE MANAGEMENT.pptx
jayashri kolekar
 
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaaUnit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
harshlad847
 
Chapter 12.pptx
Chapter 12.pptxChapter 12.pptx
Chapter 12.pptx
AsmaaFaried1
 
File Systems
File SystemsFile Systems
File Systems
Shipra Swati
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
SanthiNivas
 
operating system notes for file managment.pptx
operating system notes for file managment.pptxoperating system notes for file managment.pptx
operating system notes for file managment.pptx
panditestmail
 
File management
File managementFile management
File management
sangrampatil81
 
The Operating System concepts.. -os.pptx
The Operating System concepts.. -os.pptxThe Operating System concepts.. -os.pptx
The Operating System concepts.. -os.pptx
Stella526835
 
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMSFILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
KABILESH RAMAR
 
File system interface
File system interfaceFile system interface
File system interface
Dayan Ahmed
 
file management_osnotes.ppt
file management_osnotes.pptfile management_osnotes.ppt
file management_osnotes.ppt
HelalMirzad
 
Unit 3 file management
Unit 3 file managementUnit 3 file management
Unit 3 file management
Kalai Selvi
 
File
FileFile
File
A. S. M. Shafi
 
(file systems)12312321321321312312312.pptx
(file systems)12312321321321312312312.pptx(file systems)12312321321321312312312.pptx
(file systems)12312321321321312312312.pptx
ronniemayang
 
Unit 3 chapter 1-file management
Unit 3 chapter 1-file managementUnit 3 chapter 1-file management
Unit 3 chapter 1-file management
Kalai Selvi
 
Ch10
Ch10Ch10
Ch10
tech2click
 
file_concept.pptx file presentation directories
file_concept.pptx file presentation directoriesfile_concept.pptx file presentation directories
file_concept.pptx file presentation directories
namrataparopate
 
file_concept.pptx file presentation directories
file_concept.pptx file presentation directoriesfile_concept.pptx file presentation directories
file_concept.pptx file presentation directories
namrataparopate
 
Learn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems pptLearn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems ppt
geethasenthil2706
 
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaaUnit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
harshlad847
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
SanthiNivas
 
operating system notes for file managment.pptx
operating system notes for file managment.pptxoperating system notes for file managment.pptx
operating system notes for file managment.pptx
panditestmail
 
The Operating System concepts.. -os.pptx
The Operating System concepts.. -os.pptxThe Operating System concepts.. -os.pptx
The Operating System concepts.. -os.pptx
Stella526835
 
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMSFILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
KABILESH RAMAR
 
File system interface
File system interfaceFile system interface
File system interface
Dayan Ahmed
 
file management_osnotes.ppt
file management_osnotes.pptfile management_osnotes.ppt
file management_osnotes.ppt
HelalMirzad
 
Unit 3 file management
Unit 3 file managementUnit 3 file management
Unit 3 file management
Kalai Selvi
 
(file systems)12312321321321312312312.pptx
(file systems)12312321321321312312312.pptx(file systems)12312321321321312312312.pptx
(file systems)12312321321321312312312.pptx
ronniemayang
 
Unit 3 chapter 1-file management
Unit 3 chapter 1-file managementUnit 3 chapter 1-file management
Unit 3 chapter 1-file management
Kalai Selvi
 
Ad

More from Dhrumil Panchal (20)

YouTube Cryptocurrency Scam
YouTube Cryptocurrency ScamYouTube Cryptocurrency Scam
YouTube Cryptocurrency Scam
Dhrumil Panchal
 
This and Static Keyword
This and Static KeywordThis and Static Keyword
This and Static Keyword
Dhrumil Panchal
 
Servlet and Servlet Life Cycle
Servlet and Servlet Life CycleServlet and Servlet Life Cycle
Servlet and Servlet Life Cycle
Dhrumil Panchal
 
Properties and Indexers
Properties and IndexersProperties and Indexers
Properties and Indexers
Dhrumil Panchal
 
Chomsky Normal Form
Chomsky Normal FormChomsky Normal Form
Chomsky Normal Form
Dhrumil Panchal
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
Dhrumil Panchal
 
Key roles for successful analytic project in Data Mining
Key roles for successful analytic project in Data MiningKey roles for successful analytic project in Data Mining
Key roles for successful analytic project in Data Mining
Dhrumil Panchal
 
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dynamic Programming Code-Optimization Algorithm (Compiler Design)Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dhrumil Panchal
 
Different Software Testing Types and CMM Standard
Different Software Testing Types and CMM StandardDifferent Software Testing Types and CMM Standard
Different Software Testing Types and CMM Standard
Dhrumil Panchal
 
Web Design Issues
Web Design IssuesWeb Design Issues
Web Design Issues
Dhrumil Panchal
 
Toy Interpreter
Toy InterpreterToy Interpreter
Toy Interpreter
Dhrumil Panchal
 
Traditional Problems Associated with Computer Crime
Traditional Problems Associated with Computer CrimeTraditional Problems Associated with Computer Crime
Traditional Problems Associated with Computer Crime
Dhrumil Panchal
 
Breadth First Search (BFS)
Breadth First Search (BFS)Breadth First Search (BFS)
Breadth First Search (BFS)
Dhrumil Panchal
 
Timing Diagram of MVI Instruction of 8085 Microprocessor
Timing Diagram of MVI Instruction of 8085 MicroprocessorTiming Diagram of MVI Instruction of 8085 Microprocessor
Timing Diagram of MVI Instruction of 8085 Microprocessor
Dhrumil Panchal
 
Constructor and Types of Constructors
Constructor and Types of ConstructorsConstructor and Types of Constructors
Constructor and Types of Constructors
Dhrumil Panchal
 
Types of Instruction Format
Types of Instruction FormatTypes of Instruction Format
Types of Instruction Format
Dhrumil Panchal
 
Types of Cables(Guided Media for Transmisson)
Types of Cables(Guided Media for Transmisson)Types of Cables(Guided Media for Transmisson)
Types of Cables(Guided Media for Transmisson)
Dhrumil Panchal
 
Global Service for Mobile Communication
Global Service for Mobile CommunicationGlobal Service for Mobile Communication
Global Service for Mobile Communication
Dhrumil Panchal
 
Denial of Service Attack
Denial of Service AttackDenial of Service Attack
Denial of Service Attack
Dhrumil Panchal
 
Fourier Series
Fourier SeriesFourier Series
Fourier Series
Dhrumil Panchal
 
YouTube Cryptocurrency Scam
YouTube Cryptocurrency ScamYouTube Cryptocurrency Scam
YouTube Cryptocurrency Scam
Dhrumil Panchal
 
Servlet and Servlet Life Cycle
Servlet and Servlet Life CycleServlet and Servlet Life Cycle
Servlet and Servlet Life Cycle
Dhrumil Panchal
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
Dhrumil Panchal
 
Key roles for successful analytic project in Data Mining
Key roles for successful analytic project in Data MiningKey roles for successful analytic project in Data Mining
Key roles for successful analytic project in Data Mining
Dhrumil Panchal
 
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dynamic Programming Code-Optimization Algorithm (Compiler Design)Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dhrumil Panchal
 
Different Software Testing Types and CMM Standard
Different Software Testing Types and CMM StandardDifferent Software Testing Types and CMM Standard
Different Software Testing Types and CMM Standard
Dhrumil Panchal
 
Traditional Problems Associated with Computer Crime
Traditional Problems Associated with Computer CrimeTraditional Problems Associated with Computer Crime
Traditional Problems Associated with Computer Crime
Dhrumil Panchal
 
Breadth First Search (BFS)
Breadth First Search (BFS)Breadth First Search (BFS)
Breadth First Search (BFS)
Dhrumil Panchal
 
Timing Diagram of MVI Instruction of 8085 Microprocessor
Timing Diagram of MVI Instruction of 8085 MicroprocessorTiming Diagram of MVI Instruction of 8085 Microprocessor
Timing Diagram of MVI Instruction of 8085 Microprocessor
Dhrumil Panchal
 
Constructor and Types of Constructors
Constructor and Types of ConstructorsConstructor and Types of Constructors
Constructor and Types of Constructors
Dhrumil Panchal
 
Types of Instruction Format
Types of Instruction FormatTypes of Instruction Format
Types of Instruction Format
Dhrumil Panchal
 
Types of Cables(Guided Media for Transmisson)
Types of Cables(Guided Media for Transmisson)Types of Cables(Guided Media for Transmisson)
Types of Cables(Guided Media for Transmisson)
Dhrumil Panchal
 
Global Service for Mobile Communication
Global Service for Mobile CommunicationGlobal Service for Mobile Communication
Global Service for Mobile Communication
Dhrumil Panchal
 
Denial of Service Attack
Denial of Service AttackDenial of Service Attack
Denial of Service Attack
Dhrumil Panchal
 
Ad

Recently uploaded (20)

seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjjseninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
AjijahamadKhaji
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Autodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User InterfaceAutodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User Interface
Atif Razi
 
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic AlgorithmDesign Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Journal of Soft Computing in Civil Engineering
 
Generative AI & Large Language Models Agents
Generative AI & Large Language Models AgentsGenerative AI & Large Language Models Agents
Generative AI & Large Language Models Agents
aasgharbee22seecs
 
SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdfATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ssuserda39791
 
Agents chapter of Artificial intelligence
Agents chapter of Artificial intelligenceAgents chapter of Artificial intelligence
Agents chapter of Artificial intelligence
DebdeepMukherjee9
 
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
AI Publications
 
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
Lecture - 7 Canals of the topic of the civil engineering
Lecture - 7  Canals of the topic of the civil engineeringLecture - 7  Canals of the topic of the civil engineering
Lecture - 7 Canals of the topic of the civil engineering
MJawadkhan1
 
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdfSmart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
PawachMetharattanara
 
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink DisplayHow to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
CircuitDigest
 
Evonik Overview Visiomer Specialty Methacrylates.pdf
Evonik Overview Visiomer Specialty Methacrylates.pdfEvonik Overview Visiomer Specialty Methacrylates.pdf
Evonik Overview Visiomer Specialty Methacrylates.pdf
szhang13
 
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control
 
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation RateModeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Journal of Soft Computing in Civil Engineering
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning ModelsMode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Journal of Soft Computing in Civil Engineering
 
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjjseninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
AjijahamadKhaji
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Autodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User InterfaceAutodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User Interface
Atif Razi
 
Generative AI & Large Language Models Agents
Generative AI & Large Language Models AgentsGenerative AI & Large Language Models Agents
Generative AI & Large Language Models Agents
aasgharbee22seecs
 
SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdfATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ssuserda39791
 
Agents chapter of Artificial intelligence
Agents chapter of Artificial intelligenceAgents chapter of Artificial intelligence
Agents chapter of Artificial intelligence
DebdeepMukherjee9
 
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
AI Publications
 
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
Lecture - 7 Canals of the topic of the civil engineering
Lecture - 7  Canals of the topic of the civil engineeringLecture - 7  Canals of the topic of the civil engineering
Lecture - 7 Canals of the topic of the civil engineering
MJawadkhan1
 
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdfSmart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
PawachMetharattanara
 
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink DisplayHow to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
CircuitDigest
 
Evonik Overview Visiomer Specialty Methacrylates.pdf
Evonik Overview Visiomer Specialty Methacrylates.pdfEvonik Overview Visiomer Specialty Methacrylates.pdf
Evonik Overview Visiomer Specialty Methacrylates.pdf
szhang13
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 

File Management – File Concept, access methods, File types and File Operation

  • 2. File Management – File Concept, access methods, File types and File Operation
  • 3.  Introduction to File and File Management  File Access Methods  File Types  File Operations
  • 4.  A file is a unit of storing data on a secondary storage device such as a hard disk or other external media.  Every file has a name and its data. Operating system associates various information with files. For example the date and time of the last modified file and the size of file etc.  This information is called the file’s attributes or metadata.
  • 6.  In Sequential access, process could read all the bytes or records from a file in order, starting at the beginning, but could not skip around and read them out of order.  Sequential files could be rewound, however, so they could be read as often as needed.  These files were convenient when the storage medium was magnetic tape or CD-ROM.
  • 7.  Files whose bytes or records can be read in any order are called random access files.  Random access files are essentials for many applications, for example, data base systems.  If an airline customer calls up and wants to reserve a seat on a particular flight, the reservation program must be able to access the record for that flight without having to read the records for thousands of other flights.
  • 9.  Regular files are the ones that contain user information.  Regular file, as a randomly accessible sequence of bytes, has no other predefined internal structure.  Application programs are responsible for understanding the structure and content of any specific regular file.
  • 10.  ASCII file consists of line of text.  Advantage of ASCII files is that they can be displayed & printed as it is & they can be edited with ordinary text editor.  If number of programs use ASCII files for input and output, it is easy to connect the output of one program to the input of another.  C/C++/Perl/HTML files are all examples of ASCII files.
  • 11.  Binary files contain formatted information that only certain applications or processors can understand.  Binary files must be run on the appropriate software or processor before humans can read them.  Executable files, compiled programs, spreadsheets, compressed files, and graphic (image) files are all examples of binary files.
  • 12.  Directories are system files for maintaining the structure of the file system.  To keep track of files, file systems normally have directories or folder.
  • 13.  File exists to store information and allow it to be retrieved later.  Different system provides different operations to allow storage and retrieval.  The most common system calls are shown below.
  • 14.  Create The purpose of the call is to announce that the file is coming and to set some attributes.  Delete When the file is no longer needed, it has to be deleted to free up disk space.  Open The purpose of the open call is to allow the system to fetch the attributes.
  • 15.  Close When all accesses are finished, the attributes and disk addresses are no longer needed, so the file should be closed to free up table space.  Read Data are read from file. Usually the bytes come from the current position.  Write Data are written to the file, usually at the current position.
  • 16.  Append This call is restricted form of write. It can only add data to the end of file.  Seek For a random access files, a method is needed to specify from where to take the data. Seek repositions the file pointer to a specific place in the file.
  • 17.  Get attributes Processes often need to read the file attributes to do their work.  Set attributes Some of the attributes are user settable and can be changed after the file has been created. This system call makes that possible.
  • 18.  Rename It frequently happens that a user needs to change the name of an existing file. This system call makes it possible.
  • 19.  Inspiration from Prof. Tejas Bhatt and Prof. Bijal Talati  Notes of OS  Textbook of OS  Images from Google Images  Some my own Knowledge
  翻译: