SlideShare a Scribd company logo
1 of 2
•   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.

More Related Content

What's hot

Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnerswellingtonoboh
 
File Structure Concepts
File Structure ConceptsFile Structure Concepts
File Structure ConceptsDileep Kodira
 
imr504 classification and filing system week 5
imr504 classification and filing system week 5imr504 classification and filing system week 5
imr504 classification and filing system week 5Ahmad Shahir Mohamed Jalil
 
Data carving using artificial headers info sec conference
Data carving using artificial headers   info sec conferenceData carving using artificial headers   info sec conference
Data carving using artificial headers info sec conferenceRobert Daniel
 
File and directory
File and directoryFile and directory
File and directorySunil Kafle
 
CMoreno_PSE_pg217_1_DM
CMoreno_PSE_pg217_1_DMCMoreno_PSE_pg217_1_DM
CMoreno_PSE_pg217_1_DMCarlos Moreno
 
RBMS 2011_Edwards
RBMS 2011_EdwardsRBMS 2011_Edwards
RBMS 2011_Edwardsglynnedw
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learningLavanya Sharma
 
imr504 classification and filing system week 4
imr504 classification and filing system week 4imr504 classification and filing system week 4
imr504 classification and filing system week 4Ahmad Shahir Mohamed Jalil
 

What's hot (14)

File structures
File structuresFile structures
File structures
 
Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learners
 
File Management
File ManagementFile Management
File Management
 
File Structure Concepts
File Structure ConceptsFile Structure Concepts
File Structure Concepts
 
Files Management
Files ManagementFiles Management
Files Management
 
imr504 classification and filing system week 5
imr504 classification and filing system week 5imr504 classification and filing system week 5
imr504 classification and filing system week 5
 
Data carving using artificial headers info sec conference
Data carving using artificial headers   info sec conferenceData carving using artificial headers   info sec conference
Data carving using artificial headers info sec conference
 
File and directory
File and directoryFile and directory
File and directory
 
File Management
File ManagementFile Management
File Management
 
CMoreno_PSE_pg217_1_DM
CMoreno_PSE_pg217_1_DMCMoreno_PSE_pg217_1_DM
CMoreno_PSE_pg217_1_DM
 
RBMS 2011_Edwards
RBMS 2011_EdwardsRBMS 2011_Edwards
RBMS 2011_Edwards
 
Files and Folders
Files and FoldersFiles and Folders
Files and Folders
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
 
imr504 classification and filing system week 4
imr504 classification and filing system week 4imr504 classification and filing system week 4
imr504 classification and filing system week 4
 

Viewers also liked

SinaTab Logo bus Mock-up
SinaTab Logo bus Mock-upSinaTab Logo bus Mock-up
SinaTab Logo bus Mock-upVivian W. Shao
 
Tabela de recursos por municipio
Tabela de recursos por municipioTabela de recursos por municipio
Tabela de recursos por municipiomcassia
 
19 aalecturas reforzo-ampliacion_cast_6_santillana
19 aalecturas reforzo-ampliacion_cast_6_santillana19 aalecturas reforzo-ampliacion_cast_6_santillana
19 aalecturas reforzo-ampliacion_cast_6_santillanaFiz
 
Resumo t9 lengua_6
Resumo t9 lengua_6Resumo t9 lengua_6
Resumo t9 lengua_6Fiz
 
Termo de posse da DIRETORIA EXECUTIVA SOUZAPREV
Termo de posse da DIRETORIA EXECUTIVA SOUZAPREVTermo de posse da DIRETORIA EXECUTIVA SOUZAPREV
Termo de posse da DIRETORIA EXECUTIVA SOUZAPREVsouzaprev
 
12 More Great Ideas
12 More Great Ideas 12 More Great Ideas
12 More Great Ideas Skoda Minotti
 

Viewers also liked (9)

SinaTab Logo bus Mock-up
SinaTab Logo bus Mock-upSinaTab Logo bus Mock-up
SinaTab Logo bus Mock-up
 
Tabela de recursos por municipio
Tabela de recursos por municipioTabela de recursos por municipio
Tabela de recursos por municipio
 
19 aalecturas reforzo-ampliacion_cast_6_santillana
19 aalecturas reforzo-ampliacion_cast_6_santillana19 aalecturas reforzo-ampliacion_cast_6_santillana
19 aalecturas reforzo-ampliacion_cast_6_santillana
 
Resumo t9 lengua_6
Resumo t9 lengua_6Resumo t9 lengua_6
Resumo t9 lengua_6
 
Future Truck Tech
Future Truck TechFuture Truck Tech
Future Truck Tech
 
Calendrier scolaire2016 2017
Calendrier scolaire2016 2017 Calendrier scolaire2016 2017
Calendrier scolaire2016 2017
 
Termo de posse da DIRETORIA EXECUTIVA SOUZAPREV
Termo de posse da DIRETORIA EXECUTIVA SOUZAPREVTermo de posse da DIRETORIA EXECUTIVA SOUZAPREV
Termo de posse da DIRETORIA EXECUTIVA SOUZAPREV
 
12 More Great Ideas
12 More Great Ideas 12 More Great Ideas
12 More Great Ideas
 
Handling computer files
Handling computer filesHandling computer files
Handling computer files
 

Similar to File structure

Fundamental File Processing Operations
Fundamental File Processing OperationsFundamental File Processing Operations
Fundamental File Processing OperationsDon Bosco BSIT
 
Microsoft power point chapter 5 file edited
Microsoft power point   chapter 5 file editedMicrosoft power point   chapter 5 file edited
Microsoft power point chapter 5 file editedLinga Lgs
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating SystemJanki Shah
 
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 pptgeethasenthil2706
 
Unit ivos - file systems
Unit ivos - file systemsUnit ivos - file systems
Unit ivos - file systemsdonny101
 
chapter-4-data-file-handlingeng.pdf
chapter-4-data-file-handlingeng.pdfchapter-4-data-file-handlingeng.pdf
chapter-4-data-file-handlingeng.pdfSyedAhmed991492
 
358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16sumitbardhan
 
File Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingFile Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingChereLemma2
 
File Handling Python
File Handling PythonFile Handling Python
File Handling PythonAkhil Kaushik
 
File handing in C
File handing in CFile handing in C
File handing in Cshrishcg
 
File handling in C hhsjsjshsjjsjsjs.pptx
File handling in C hhsjsjshsjjsjsjs.pptxFile handling in C hhsjsjshsjjsjsjs.pptx
File handling in C hhsjsjshsjjsjsjs.pptxarmaansohail9356
 

Similar to File structure (20)

Fundamental File Processing Operations
Fundamental File Processing OperationsFundamental File Processing Operations
Fundamental File Processing Operations
 
File Handling.pptx
File Handling.pptxFile Handling.pptx
File Handling.pptx
 
Microsoft power point chapter 5 file edited
Microsoft power point   chapter 5 file editedMicrosoft power point   chapter 5 file edited
Microsoft power point chapter 5 file edited
 
File Systems
File SystemsFile Systems
File Systems
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
File System.pptx
File System.pptxFile System.pptx
File System.pptx
 
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
 
File
FileFile
File
 
Unit ivos - file systems
Unit ivos - file systemsUnit ivos - file systems
Unit ivos - file systems
 
File Handling in C
File Handling in CFile Handling in C
File Handling in C
 
File Handling
File HandlingFile Handling
File Handling
 
File Handling
File HandlingFile Handling
File Handling
 
file_c.pdf
file_c.pdffile_c.pdf
file_c.pdf
 
File organisation
File organisationFile organisation
File organisation
 
chapter-4-data-file-handlingeng.pdf
chapter-4-data-file-handlingeng.pdfchapter-4-data-file-handlingeng.pdf
chapter-4-data-file-handlingeng.pdf
 
358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16
 
File Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingFile Management and manipulation in C++ Programming
File Management and manipulation in C++ Programming
 
File Handling Python
File Handling PythonFile Handling Python
File Handling Python
 
File handing in C
File handing in CFile handing in C
File handing in C
 
File handling in C hhsjsjshsjjsjsjs.pptx
File handling in C hhsjsjshsjjsjsjs.pptxFile handling in C hhsjsjshsjjsjsjs.pptx
File handling in C hhsjsjshsjjsjsjs.pptx
 

File structure

  • 1. 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.
  • 2. 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.