Chapter 10

4 Pages
Unlock Document

Information Technology Management
ITM 200
Vikraman Baskaran

Chapter 10 Files 10.1 Motivation Reading data from files File is a collection of information that can be stored on a disk; the disk could be a o Hard disk o Floppy disk o Zip disk o CD-ROM o Flash drive There are lots of different sorts of file; for example o Word documents o Excel spreadsheets o Program source files (text) o Executable program files o Data files for programs 10.2 Sequential access files Sequential access file is one in which data is written to the file in sequence, 1 data item at a time o The data is read from the file in the same sequential order o In a file of characters, each data item is a single character 10.3 Writing to a file To write data to a file on a disk you must carry out the following steps o Create a FileWriter object in the program to represent the file and link it to the file o Create a BufferedWriter object to collect characters together before they are sent to the file and connect it to the FileWriter object
More Less

Related notes for ITM 200

Log In


Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.