Skip to main content

CS101: Introduction to Computer Science I

Page path
  • Home /
  • Courses /
  • Course Catalog /
  • Computer Science /
  • CS101: Introduction to Computer Science I /
  • Unit 8: Java I/O and Exception Handling /
  • 8.3: Reading Data from a File
Back to 'Unit 8: Java I/O and Exception Handling'
  • 8.3: Reading Data from a File

    • Central Connecticut State University: Bradley Kjell's "Introduction to Computer Science Using Java, Chapter 84: Reading from Text Files" >

      Read this chapter.

      This chapter explains the Java I/O API and discusses Reader classes in detail. The second page shows ReaderStream class hierarchy. FileReader and BufferedReader classes are used together when reading data from an external file.

      The use of BufferedReader class allows data to be buffered as it is read from the file before manipulating it. The readLine() method of the BufferedReader class reads a line of text from a character-oriented input stream, and puts it into a new String object.

    •  Quiz on FileReader and BufferReader

      Attempt this ungraded quiz.

Navigation

Art History
Biology
Business Administration
Chemistry
Communication
Economics
English
History
Mathematics

Creative Commons License
© Saylor Academy 2010-2018 except as otherwise noted. Excluding course final exams, content authored by Saylor Academy is available under a Creative Commons Attribution 3.0 Unported license. Third-party materials are the copyright of their respective owners and shared under various licenses. See www.saylor.org/open/licensinginformation for detailed licensing information.

Saylor Academy and Saylor.org® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.

Terms of Use | Privacy Policy