TAILIEUCHUNG - Programming the Be Operating System-Chapter 10: Files

Tham khảo tài liệu 'programming the be operating system-chapter 10: files', công nghệ thông tin, hệ điều hành phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | In this chapter Files and the Storage Kit Using Standard Open and Save Panels Onward 10 Files Many utility programs don t involve file handling but almost all real-world full-featured applications do. Before your own best-selling Be application can be considered complete it will no doubt need to have the capability to open files save files or both. In this chapter you ll see how these file-handling techniques are implemented. To open a file your program will need to find it on disk and to save a file your program will need to specify a location on disk. So before getting into the actual manipulation of files this chapter introduces you to the BeOS file hierarchy. Files and the Storage Kit Up to this point we ve managed to avoid the Storage Kit. Now that we re about to work with persistent data though it s time to dig into a number of the classes in this useful kit. The classes of the Storage Kit allow you to write programs that recognize the hierarchy of files on disk read from and write to files and study or change file attributes. There are a number of Storage Kit classes that aid in working with files including unsurprisingly the BFile class. But Be also tips its hat to Unix programmers by supporting standard POSIX file functions such as open close read and write . If you have a Unix programming background you ll feel right at home using POSIX functions to implement file-handling tasks such as saving a document s data to a file. If you aren t comfortable with Unix you probably aren t familiar with POSIX. That s okay because the Storage Kit also defines classes such as BFile that let you work with files outside the realm of POSIX. In this chapter I ll cover file manipulation using both techniques. 359 360 Chapter 10 Files POSIX or Portable Operating System Interface for Unix is a standard developed so that buyers particularly the . government could be assured of purchasing programs that ran on a variety of systems and configurations. A POSIX-compliant program

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.