Đang chuẩn bị liên kết để tải về tài liệu:
Lecture Object Oriented Programing - Chapter 14: Files and streams

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

In chapter 14 you will learn: To create, read, write and update files; to use class File to retrieve information about files and directories; the Java input/output stream class hierarchy; the differences between text files and binary files; sequential-access and random-access file processing; to use classes Scanner and Formatter to process text files; to use the FileInputStream and FileOutputStream classes. | 14 Files and Streams I can only assume that a “Do Not File” document is filed in a “Do Not File” file. Senator Frank Church Senate Intelligence Subcommittee Hearing, 1975 Consciousness does not appear to itself chopped up in bits. A “river” or a “stream” are the metaphors by which it is most naturally described. William James I read part of it all the way through. Samuel Goldwyn A great memory does not make a philosopher, any more than a dictionary can be called grammar. John Henry, Cardinal Newman OBJECTIVES In this chapter you will learn: To create, read, write and update files. To use class File to retrieve information about files and directories. The Java input/output stream class hierarchy. The differences between text files and binary files. Sequential-access and random-access file processing. To use classes Scanner and Formatter to process text files. To use the FileInputStream and FileOutputStream classes. To use a JFileChooser dialog. To use the ObjectInputStream and | 14 Files and Streams I can only assume that a “Do Not File” document is filed in a “Do Not File” file. Senator Frank Church Senate Intelligence Subcommittee Hearing, 1975 Consciousness does not appear to itself chopped up in bits. A “river” or a “stream” are the metaphors by which it is most naturally described. William James I read part of it all the way through. Samuel Goldwyn A great memory does not make a philosopher, any more than a dictionary can be called grammar. John Henry, Cardinal Newman OBJECTIVES In this chapter you will learn: To create, read, write and update files. To use class File to retrieve information about files and directories. The Java input/output stream class hierarchy. The differences between text files and binary files. Sequential-access and random-access file processing. To use classes Scanner and Formatter to process text files. To use the FileInputStream and FileOutputStream classes. To use a JFileChooser dialog. To use the ObjectInputStream and ObjectOutputStream classes 14.1 Introduction 14.2 Data Hierarchy 14.3 Files and Streams 14.4 Class File 14.5 Sequential-Access Text Files 14.5.1 Creating a Sequential-Access Text File 14.5.2 Reading Data from a Sequential-Access Text File 14.5.3 Case Study: A Credit-Inquiry Program 14.5.4 Updating Sequential-Access Files 14.6 Object Serialization 14.6.1 Creating a Sequential-Access File Using Object Serialization 14.6.2 Reading and Deserializing Data from a Sequential- Access File 14.7 Additional java.io Classes 14.8 Opening Files with JFileChooser 14.9 Wrap-Up 14.1 Introduction Storage of data in variables and arrays is temporary Files used for long-term retention of large amounts of data, even after the programs that created the data terminate Persistent data – exists beyond the duration of program execution Files stored on secondary storage devices Stream – ordered data that is read from or written to a file 14.2 Data Hierarchy Computers .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.