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

PPT
Fundamental File Processing Operations
DOC
File structure
PPTX
Concept of computer files
PPT
File organization
PPT
File organisation
PPT
PPTX
File Management
PDF
itft-File design
Fundamental File Processing Operations
File structure
Concept of computer files
File organization
File organisation
File Management
itft-File design

What's hot (17)

PPTX
File management
DOCX
File organization in database
PPTX
File organization and introduction of DBMS
PPTX
Handling computer files
PPT
Lecture #1 Introduction
PPTX
File Organization
PDF
Data carving using artificial headers info sec conference
PPT
File organisation
PPT
Fileorganization AbnMagdy
PPT
File structures
PPT
File Management
PPT
File organization
PPT
AIMS Workshop Case Study 3: Arrangement and Description Case Study - Stephen ...
PDF
File organisation
PPTX
Concept of computer files for Grade 12 learners
PPTX
Introduction to File System
File management
File organization in database
File organization and introduction of DBMS
Handling computer files
Lecture #1 Introduction
File Organization
Data carving using artificial headers info sec conference
File organisation
Fileorganization AbnMagdy
File structures
File Management
File organization
AIMS Workshop Case Study 3: Arrangement and Description Case Study - Stephen ...
File organisation
Concept of computer files for Grade 12 learners
Introduction to File System
Ad

Similar to Fundamental File Processing Operations (20)

PDF
23CS101T PSPP python program - UNIT 5.pdf
PPTX
file_concept.pptx file presentation directories
PPTX
Learn about the File Concept in operating systems ppt
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
PPTX
Python-FileHandling.pptx
23CS101T PSPP python program - UNIT 5.pdf
file_concept.pptx file presentation directories
Learn about the File Concept in operating systems ppt
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
Python-FileHandling.pptx
Ad

More from Don Bosco BSIT (20)

PPTX
Probability and statistics (frequency distributions)
PPTX
Probability and statistics (basic statistical concepts)
PPTX
Factors in assembling personal computer
PDF
Alumni response
PDF
Summative Report: 1st Consultative Curriculum Dev Oct. 20-21
PDF
8085 op codes
PPT
Data communication basics
ODP
Data communication basics
ODT
Research Primer
PDF
Os Virtualization
PPT
SYSAD323 Virtualization Basics
PDF
Shell Scripting Structured Commands
PPT
Jedi Slides Intro2 Chapter12 Advanced Io Streams
PDF
V Communication Error Detection And Correction
PDF
Iv The Telephone And Multiplex Systems
PDF
Iii Data Transmission Fundamentals
PDF
Ii Communications Channel
PDF
I Introduction To Data Communications
PPT
Secondary Storage Device Magnetic Tapes
PPT
Lecture #1 Introduction
Probability and statistics (frequency distributions)
Probability and statistics (basic statistical concepts)
Factors in assembling personal computer
Alumni response
Summative Report: 1st Consultative Curriculum Dev Oct. 20-21
8085 op codes
Data communication basics
Data communication basics
Research Primer
Os Virtualization
SYSAD323 Virtualization Basics
Shell Scripting Structured Commands
Jedi Slides Intro2 Chapter12 Advanced Io Streams
V Communication Error Detection And Correction
Iv The Telephone And Multiplex Systems
Iii Data Transmission Fundamentals
Ii Communications Channel
I Introduction To Data Communications
Secondary Storage Device Magnetic Tapes
Lecture #1 Introduction

Recently uploaded (20)

PDF
Basic Mud Logging Guide for educational purpose
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
master seminar digital applications in india
PDF
Business Ethics Teaching Materials for college
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
Basic Mud Logging Guide for educational purpose
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
01-Introduction-to-Information-Management.pdf
Cell Structure & Organelles in detailed.
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
VCE English Exam - Section C Student Revision Booklet
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Renaissance Architecture: A Journey from Faith to Humanism
master seminar digital applications in india
Business Ethics Teaching Materials for college
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
human mycosis Human fungal infections are called human mycosis..pptx
Pharma ospi slides which help in ospi learning
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
O7-L3 Supply Chain Operations - ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
STATICS OF THE RIGID BODIES Hibbelers.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.