Abstract
By the end of this chapter students should be able to:
-
explain the principles of input and output and identify a number of different input and output devices ;
-
explain the concept of an I/O stream ;
-
describe the basic file-handling techniques used in the Java language;
-
distinguish between text, binary and object encoding of data;
-
distinguish between serial access files and random access files ;
-
create and access files in Java using all the above encoding and access methods.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Most systems use Unicode character 26 as the end-of-file marker.
- 2.
As we have not supplied an absolute pathname, the file will be saved in the current directory.
- 3.
Allow for 1 byte when calculating storage space.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Charatan, Q., Kans, A. (2019). Working with Files. In: Java in Two Semesters. Texts in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-99420-8_18
Download citation
DOI: https://doi.org/10.1007/978-3-319-99420-8_18
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-99419-2
Online ISBN: 978-3-319-99420-8
eBook Packages: Computer ScienceComputer Science (R0)