L06-FileIO1 - King Fahd University of Petroleum & Minerals...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
December 6, 2010 ICS102 Lecture 6: File Input Output Information & Computer Science Department
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Outline Text Files Stream Reading from a Text File using  Scanner Writing to a File IOException Pitfalls
Background image of page 2
Text Files Files that are designed to be read by human beings, and that  can be read or written with an editor are called  text files Text files can also be called ASCII files because the data they  contain uses an ASCII encoding scheme An advantage of text files is that they are usually the same on  all computers, so that they can move from one computer to  another
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ASCII Encoding
Background image of page 4
Streams stream  is an object that enables the flow of data  between a program and some I/O device or file If the data flows into a program, then the stream is called  an  input stream If the data flows out of a program, then the stream is called  an  output stream file program Output stream Input stream
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/05/2010 for the course ICS 102 taught by Professor Zaman during the Fall '08 term at King Fahd University of Petroleum & Minerals.

Page1 / 18

L06-FileIO1 - King Fahd University of Petroleum & Minerals...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online