SlideShare a Scribd company logo
Fundamental File Processing Operations Physical files and Logical files Opening files Closing files Reading and Writing Seeking Special Characters in Files
Physical Files and Logical Files Physical file A file that actually exists on secondary storage. It is the file as known by the computer operating system and that appears in its file directory.
Logical Files The file as seen by the program. The use of logical files allows a program to describe operations to be performed on a file without knowing what actual physical file will be used. The program may then be used to process any one of a number of different files that share the same structure. Physical Files and Logical Files
Opening Files 2 ways of manipulation of files: Open an existing file Create a new file, deleting  any existing contents in the physical file.
Closing Files Analogy Telephone line, like hanging up the phone. When you hang up the phone, the phone is available for taking or placing another call; when you close a file, the logical file name or file descriptor is available for use with another file. Closing a file that has been used for output also ensures that everything has been written to the file.
Reading and Writing Fundamental to file processing Actions that make file processing an  input/output  (I/O) operation.
Seeking The action of moving directly to a certain position in a file. Requires at least two pieces of information, source file and offset. Source file – the logical file name in which the seek will occur Offset – the number of positions in the file the pointer is to be moved from the start of the file.
Special Characters in Files Creating a file structures may encounter some difficulty with extra, unexpected characters that turn up in the files, with characters that disappear, and with numeric counts that are inserted into the files.

More Related Content

PPTX
File Organization
PPTX
PDF
Software engineering lecture notes
PPT
File access methods.54
PDF
File organization
PPT
chapter5-file system implementation.ppt
PPTX
Chapter 4 record storage and primary file organization
PPT
File organisation
File Organization
Software engineering lecture notes
File access methods.54
File organization
chapter5-file system implementation.ppt
Chapter 4 record storage and primary file organization
File organisation

What's hot (20)

PDF
Python-File handling-slides-pkt
PDF
Memory and Cache Coherence in Multiprocessor System.pdf
PPTX
File concept and access method
PPTX
Transaction Processing Concept
PPTX
directory structure and file system mounting
DOCX
Student information system
PDF
Unit 1: Introduction to DBMS Unit 1 Complete
PDF
Software Engineering - SOFTWARE DESIGN Process
PPTX
Learn about the File Concept in operating systems ppt
PDF
Lecture Notes Unit1 chapter1 Introduction
PPTX
Introduction to DBMS(For College Seminars)
PPTX
Introduction to Parallel and Distributed Computing
PPT
Object oriented analysis
PPTX
Data abstraction in DBMS
DOCX
Library Management System
PPTX
PPTX
File allocation methods (1)
PDF
Blood Bank Management System
PPT
Process Improvement in Software Engineering SE25
PPTX
Introduction to distributed database
Python-File handling-slides-pkt
Memory and Cache Coherence in Multiprocessor System.pdf
File concept and access method
Transaction Processing Concept
directory structure and file system mounting
Student information system
Unit 1: Introduction to DBMS Unit 1 Complete
Software Engineering - SOFTWARE DESIGN Process
Learn about the File Concept in operating systems ppt
Lecture Notes Unit1 chapter1 Introduction
Introduction to DBMS(For College Seminars)
Introduction to Parallel and Distributed Computing
Object oriented analysis
Data abstraction in DBMS
Library Management System
File allocation methods (1)
Blood Bank Management System
Process Improvement in Software Engineering SE25
Introduction to distributed database
Ad

Viewers also liked (20)

PPT
06 file processing
PDF
File Processing System
PPTX
File Organization
PPT
File structures
PPTX
Digital Search Tree
PPT
Types of Data Processing
PPTX
Tries - Tree Based Structures for Strings
PPTX
Disadvantages of file management system (file processing systems)
PPT
File organization
PPTX
Concept of computer files for Grade 12 learners
PPT
14 file handling
 
PPT
Secondary Storage Device Magnetic Tapes
PPT
Download presentation
PPT
Fundamental File Processing Operations
PDF
Lecture storage-buffer
PPT
File org leela mdhm 21 batch aiha lecture
PPTX
Files and file objects (in Python)
PDF
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)
PPTX
Application of tries
06 file processing
File Processing System
File Organization
File structures
Digital Search Tree
Types of Data Processing
Tries - Tree Based Structures for Strings
Disadvantages of file management system (file processing systems)
File organization
Concept of computer files for Grade 12 learners
14 file handling
 
Secondary Storage Device Magnetic Tapes
Download presentation
Fundamental File Processing Operations
Lecture storage-buffer
File org leela mdhm 21 batch aiha lecture
Files and file objects (in Python)
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)
Application of tries
Ad

Similar to Fundamental File Processing Operations (20)

DOC
File structure
PPTX
File management
PDF
23CS101T PSPP python program - UNIT 5.pdf
PPTX
file_concept.pptx file presentation directories
PPTX
file_concept.pptx file presentation directories
PPTX
operating system notes for file managment.pptx
PPTX
File Management and manipulation in C++ Programming
PDF
Unit 5 File handling in C programming.pdf
PPTX
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
PDF
File Systems
PDF
Unit ivos - file systems
PDF
FILES IN C
PPTX
The Operating System concepts.. -os.pptx
PPTX
INput output stream in ccP Full Detail.pptx
PDF
lecs102.pdf kjolholhkl';l;llkklkhjhjbhjjmnj
PPTX
File Management – File Concept, access methods, File types and File Operation
PPTX
what are python basics.pptx.Join Python training in Chandigarh
PDF
Filepointers1 1215104829397318-9
File structure
File management
23CS101T PSPP python program - UNIT 5.pdf
file_concept.pptx file presentation directories
file_concept.pptx file presentation directories
operating system notes for file managment.pptx
File Management and manipulation in C++ Programming
Unit 5 File handling in C programming.pdf
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
File Systems
Unit ivos - file systems
FILES IN C
The Operating System concepts.. -os.pptx
INput output stream in ccP Full Detail.pptx
lecs102.pdf kjolholhkl';l;llkklkhjhjbhjjmnj
File Management – File Concept, access methods, File types and File Operation
what are python basics.pptx.Join Python training in Chandigarh
Filepointers1 1215104829397318-9

Recently uploaded (20)

PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Classroom Observation Tools for Teachers
PPTX
master seminar digital applications in india
PDF
Business Ethics Teaching Materials for college
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Classroom Observation Tools for Teachers
master seminar digital applications in india
Business Ethics Teaching Materials for college
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Renaissance Architecture: A Journey from Faith to Humanism
Supply Chain Operations Speaking Notes -ICLT Program
Module 4: Burden of Disease Tutorial Slides S2 2025
Anesthesia in Laparoscopic Surgery in India
Microbial disease of the cardiovascular and lymphatic systems
01-Introduction-to-Information-Management.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

Fundamental File Processing Operations

  • 1. Fundamental File Processing Operations Physical files and Logical files Opening files Closing files Reading and Writing Seeking Special Characters in Files
  • 2. Physical Files and Logical Files Physical file A file that actually exists on secondary storage. It is the file as known by the computer operating system and that appears in its file directory.
  • 3. Logical Files The file as seen by the program. The use of logical files allows a program to describe operations to be performed on a file without knowing what actual physical file will be used. The program may then be used to process any one of a number of different files that share the same structure. Physical Files and Logical Files
  • 4. Opening Files 2 ways of manipulation of files: Open an existing file Create a new file, deleting any existing contents in the physical file.
  • 5. Closing Files Analogy Telephone line, like hanging up the phone. When you hang up the phone, the phone is available for taking or placing another call; when you close a file, the logical file name or file descriptor is available for use with another file. Closing a file that has been used for output also ensures that everything has been written to the file.
  • 6. Reading and Writing Fundamental to file processing Actions that make file processing an input/output (I/O) operation.
  • 7. Seeking The action of moving directly to a certain position in a file. Requires at least two pieces of information, source file and offset. Source file – the logical file name in which the seek will occur Offset – the number of positions in the file the pointer is to be moved from the start of the file.
  • 8. Special Characters in Files Creating a file structures may encounter some difficulty with extra, unexpected characters that turn up in the files, with characters that disappear, and with numeric counts that are inserted into the files.