Skip to Main Content
Introducing Data Structures with Java
book

Introducing Data Structures with Java

by David Cousins
March 2013
Intermediate to advanced content levelIntermediate to advanced
416 pages
9h 41m
English
Pearson Education India
Content preview from Introducing Data Structures with Java

4

File Input and Output

Contents

  • Alternative program input/output
  • Data files
  • Text and binary files
  • Reading and writing to files
4.1 INTRODUCTION

In Chapter 3, we examined processes for reading input from a keyboard and displaying output on screen. Alternatively, a program’s data might come from backing storage and its output may be written there. Files—their types, access and processing—represent a very wide topic to which one cannot do full justice in a study of data structures. Java has a number of methods for reading from and writing to data files, and we will briefly examine some of them in this chapter in the context of program input and output. They will be used in case studies later in this book.

4.2 TEXT AND BINARY FILES

We distinguish ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Structures and Algorithms Using Java

Data Structures and Algorithms Using Java

William McAllister

Publisher Resources

ISBN: 9788131758649