Abstract
In this chapter, we will explain the following:
-
The difference between text files and binary files
-
The difference between internal and external file names
-
How to write a program to compare two text files
-
The try...catch construct
-
How to perform input/output with binary files
-
How to work with a binary file of records
-
What are random access files
-
How to create and retrieve records from random access files
-
What are indexed files
-
How to update a random access file using an index
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Noel Kalicharan
About this chapter
Cite this chapter
Kalicharan, N. (2014). Working with Files. In: Advanced Topics in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6620-4_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6620-4_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6619-8
Online ISBN: 978-1-4302-6620-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)