C# 0 The Complete Reference


PART I C h a p t e r   1 4



Download 4,07 Mb.
Pdf ko'rish
bet474/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   470   471   472   473   474   475   476   477   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt


PART I

C h a p t e r   1 4 :  

U s i n g   I / O  

365


PART IPART I

Notice that 



Stream

 defines methods that read and write data. However, not all streams 

will support both of these operations because it is possible to open read-only or write-only 

streams. Also, not all streams will support position requests via 



Seek( )

. To determine the 

capabilities of a stream, you will use one or more of 

Stream

’s properties. They are shown in 

Table 14-2. Also shown are the 

Length

 and 


Position

 properties, which contain the length of 

the stream and its current position.

The Byte Stream Classes

Several concrete byte streams are derived from 



Stream

. Those defined in the 



System.IO

namespace are shown here:

Stream Class

Description

BufferedStream

Wraps a byte stream and adds buffering. Buffering provides 

a per formance enhancement in many cases.

FileStream

A byte stream designed for file I/O.

Memor yStream

A byte stream that uses memor y for storage.

UnmanagedMemor yStream

A byte stream that uses unmanaged memor y for storage.

Several other concrete stream classes are also supported by the .NET framework, which 

provide support for compressed files, sockets, and pipes, among others. It is also possible to 

derive your own stream classes. However, for the vast majority of applications, the built-in 

streams will be sufficient.


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   470   471   472   473   474   475   476   477   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish