ITYourself! - компьютерная документация, книги, мануалы, it-тематика

14. ?????

E-mail Печать PDF
Рейтинг пользователей: / 0
ХудшийЛучший 
Индекс материала
14. ?????
?????? ? ?????????? ? ???????
Все страницы

Files/FileSystem

?????? ??????. ?????? ? ???????

 

? .NET Framework - ?????????? ???????? ????????? ??????, ?? ????????? ?? ?????????. ???? ???????? ??????? ?? ??????? ?????? (stream), ????????? ??? ?????? ????? ???? ???????????? ? ???? ?????? ??????. ????? - ??? ????????, ??????????? ???????? ?????? ? ??????, ???????? ?????, ??????, ?????????? ?? ????, ?????? ? ??????? ??????.

 

????? Stream

??????????? ???????? ?????-?????? ??????????? ? ???????????? ???? SystemIO. ??? ?????????? ???? ???????? ???????????? ??????????? ????? Stream.

???????? ??????, ??????????? ?? Stream

?????

????????

FileStream

?????? ? ??????

MemoryStream

???? ?????? (????? ???????????? ??? ?????? ? ????????)

NetworkStream

??????, ?????????? ? ???? ?????? ?? ???????? ??????????

???????? ???????? ? ?????? ?????? Stream:

????? / ????????

????????

CanRead

??????? ????????? ??????

CanWrite

??????? ????????? ??????

CanSeek

??????? ????????? ??????????? ? ??????

Read

?????? ????????? ?????????? ??????, ??????? ? ??????? ???????. ?????????? ?????????? ??????? ??????????? ??????

ReadByte

?????? ?????????? ?????. ???? ??????? ??????? ????????? ? ????? ??????, ?????????? -1

Write

?????? ????????? ?????????? ?????? ??????? ? ??????? ???????

WriteByte

?????? ?????????? ?????

Length

????? ?????? ? ??????

Position

??????? ? ??????? ??????

Flush

?????? ?????? ? ???????? ???? ???????, ???????????? ???????

Close

??????? ????? ? ?????????? ???????????? ???????

 

????? FileStream

???? - ???????? ??????? ???????? ???????, ??????????????? ??? ???????? ??????????. ??? ???????? ??? ??????/?????? ???? ?????????? ???????.

????? FileStream ???????????? ??? ????????, ??????, ?????? ? ???????? ??????. ??? ???????? ????? ??? ???????? ?????? ????? ??????? ?????? ?????? FileStream

FileStream(ByVal strFileName As String, ByVal fm As FileMode, ByVal fa As FileAccess, ByVal fs As FileShare)

???, strFileName ?????????? ??? ?????;

FileMode ?????????? ???????? ? ??????;

???????????? FileMode

????????

????????

CreateNew

??????? ????. ??????, ???? ???? ??????????.

Create

??????? ????. ???? ???? ??????????, ??? ?????????? ?????????

Open

??????? ????. ??????, ???? ???? ?? ??????????

OpenOrCreate

??????? ????. ???? ????? ?? ??????????, ???????

Append

????????? ????????? ? ????? ?????. ??????? ???? ???? ?? ??????????

FileAccess ????????? ????? ??????? ? ?????;

???????????? FileAccess

????????

????????

Read

??????? ??? ??????

Write

??????? ??? ??????

ReadWrite

??????? ??? ?????? ? ?????? (?? ?????????)

FileShare ????????? ??????? ????? ??????????? ??????? ? ?????.

???????????? FileShare

????????

????????

None

????????? ?????? ?????? ????????? ? ????? (?? ?????????)

Read

????????? ?????? ????????? ?????? ?? ?????

Write

????????? ?????? ????????? ?????? ? ????

ReadWrite

?????? ?????? ? ?????

 

???????? ?????? ? ???????? ?????? FileStream

????? / ????????

????????

 

Handle

???????? ??????????? ???????????? ??????? ??? ?????

 

Position

??????? ??????? ? ?????. ????????? ??????? ?????????? ? ????. ??????? ? ????? ????? ????? ? ??????? ???????? Length

 

Lock

????????? ?????? ? ????? ??? ??? ????? ?? ??????? ?????? ?????????

Seek

????????????? ????????? ??????? ??????? ? ???????? ?????????. ????? ??????? ???????????? ?????????? Begin, ?urrent ??? End

Unlock

??????? ?????????? ? ????? ??????????????? ????? ?????

???????? Length ? ?????? Write, WriteByte, Read, ReadByte, Close ?????????? ??????? ?????? Stream. ???????? CanSeek ?????? ????? True ??? ???????? ??????.

 

????? Environment

????? Environment ????????? ???????? ???????? ?????????? ?????. ?????? GetLogicalDrives ? GetFolderPath ?????????? ?????????? ? ???????? ???????.

???????? CurrentDirectory ????????? ???????? ??? ?????????? ??????? ???? ? ??????? ??? ??????????. ??? ??????????? ???????? ???????? ????? ???????? ????????????? ????, ??????? ?????? .., ??????????? ?? ???????????? ???????.

 

????? Path

????? Path ???????????? ??? ????????? ???? ??????

???????? ?????? ? ???????? ?????? Path

???????? / ?????

????????

DirectorySeparatorChar

??????-??????????? ????? ??? ??????? ?????????

InvalidPathChars

?????? ????????, ???????????? ? ????? ?????

ChangeExtension

???????? ?????????? ????? ? ?????????? ????? ???

GetDirectoryName

?????????? ???? ? ????????, ? ??????? ????????? ????

GetFileName

?????????? ??? ?????

GetExtension

?????????? ?????????? ?????

GetFileNameWithoutExtension

?????????? ??? ????? ??? ??????????

Combine

?????????? ???? ? ????? ?/??? ?????? ?????



 

Добавьтe Ваш комментарий

Ваше имя (псевдоним):
Ваш адрес почты:
Заголовок:
Комментарий:

???????????

??????????




??????? ?????????

????????

Внимание!!! Файл sape.php не обнаружен. Проверьте правильность установки кода Sape.


C???????? ?????????