TAILIEUCHUNG - Lecture Windows programming: Chapter 8 - Châu Thị Bảo Hà

Lecture Windows programming - Chapter 8 introduce to the files and streams. In this chapter you will be learn contents: Files and Streams overview, IO namespace and its classes, serialization. | Files & Streams Chapter 8 Ebook: Beginning Visual C# 2010, chapter 21 Reference: C# How to Program, chapter 17 Contents Files and Streams overview IO namespace and its classes Serialization Files and Streams Files and Streams C# views each file as a sequential stream of bytes each file ends either with: an end-of-file marker specific byte number recorded in a system-maintained administrative data structure When a file is opened, an object is created and a stream is associated with the object when a file is opened two types of streams output input C# views each file as a sequential stream of bytes. Each file ends either with an end-of-file marker or at a specific byte number that is recorded in a system-maintained administrative data structure. When a file is opened, C# creates an object, then associates a stream with that object. ➤ Output—Output streams are used when data is written to some external destination, which can be a physical disk file, a network location, a printer, or another program. Understanding stream programming opens many advanced possibilities. This chapter focuses on file system data, so you’ll only be looking at writing to disk files ➤ Input— Input streams are used to read data into memory or variables that your program can access. The most common form of input stream you have worked with so far is the keyboard. An input stream can come from almost any source, but this chapter focuses on reading disk files. The concepts applied to reading/writing disk files apply to most devices, so you’ll gain a basic understanding of streams and learn a proven approach that can be applied to many situation Contents Files and Streams IO namespace and its classes Serialization IO namespace and its classes Class Description Stream Provides a view of the sequence of bytes File Provides static methods for creating and manipulating files FileSystemInfo Contains methods that are common to file and directory manipulation Directory Provides methods for creating, moving and

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.