Java I/O Fundamentals

  • S G Ganesh
  • Tushar Sharma


In this chapter, we’ll introduce you to the fundamentals of Java I/O programming. We’ll cover two topics: how to read and write data from console, and then how to use (file) streams to read and write data.

Programming with I/O involves writing some exception-handling code as well. If you’re not familiar with the basics of exception handling, such as how to use try-catch-finally blocks or try-with-resources statements, we recommend that you to read the first three sections in the chapter on exception handling and assertions ( Chapter 11) and then return to this chapter.


Text File Magic Number Exception Handling Output Stream Abstract Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© S G Ganesh 2013

Authors and Affiliations

  • S G Ganesh
    • 1
  • Tushar Sharma
    • 1
  1. 1.BangaloreIndia

Personalised recommendations