C# Класс CSKernelFile.cFile

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
binaryRead ( byte &buffer, bool &eof ) : bool
binaryWrite ( byte buffer ) : bool
cFile ( ) : System
close ( ) : void
copyFile ( string fullFileNameSource, string fullFileNameDestination ) : bool
getFileExt ( string fullFileName ) : string
getFileName ( string fullFileName ) : string
getFileWithoutExt ( string fullFileName ) : string
getName ( ) : string
getPath ( ) : string
getPath ( string fullFileName ) : string
getPathAndFileName ( string fullFileName, string &path, string &fileName ) : void
init ( string function, string module, object commDialog ) : void
open ( string fullFileName, eFileMode mode ) : bool
open ( string fullFileName, eFileMode mode, bool createFile ) : bool
open ( string fullFileName, eFileMode mode, bool createFile, bool silens, eFileAccess access, bool withDialog, bool canOpenOther ) : bool
read ( string &text, bool &eof ) : bool
save ( string fullFileName, bool &exists, bool &readOnly, string description ) : bool
setFilter ( string value ) : void
showOpenFileDlg ( string &userFile, string filter, string fileToSearch, string curDir, string title, bool saving ) : bool
userSearchFile ( string &fullFileName, bool ifNotExistsIsOk, string description, bool saving, bool canOpenOther ) : bool
write ( string text ) : bool

Приватные методы

Метод Описание
fileExists ( string fullFileName ) : bool
isSeparator ( string character ) : bool

Описание методов

binaryRead() публичный Метод

public binaryRead ( byte &buffer, bool &eof ) : bool
buffer byte
eof bool
Результат bool

binaryWrite() публичный Метод

public binaryWrite ( byte buffer ) : bool
buffer byte
Результат bool

cFile() публичный Метод

public cFile ( ) : System
Результат System

close() публичный Метод

public close ( ) : void
Результат void

copyFile() публичный статический Метод

public static copyFile ( string fullFileNameSource, string fullFileNameDestination ) : bool
fullFileNameSource string
fullFileNameDestination string
Результат bool

getFileExt() публичный статический Метод

public static getFileExt ( string fullFileName ) : string
fullFileName string
Результат string

getFileName() публичный статический Метод

public static getFileName ( string fullFileName ) : string
fullFileName string
Результат string

getFileWithoutExt() публичный статический Метод

public static getFileWithoutExt ( string fullFileName ) : string
fullFileName string
Результат string

getName() публичный Метод

public getName ( ) : string
Результат string

getPath() публичный Метод

public getPath ( ) : string
Результат string

getPath() публичный статический Метод

public static getPath ( string fullFileName ) : string
fullFileName string
Результат string

getPathAndFileName() публичный статический Метод

public static getPathAndFileName ( string fullFileName, string &path, string &fileName ) : void
fullFileName string
path string
fileName string
Результат void

init() публичный Метод

public init ( string function, string module, object commDialog ) : void
function string
module string
commDialog object
Результат void

open() публичный Метод

public open ( string fullFileName, eFileMode mode ) : bool
fullFileName string
mode eFileMode
Результат bool

open() публичный Метод

public open ( string fullFileName, eFileMode mode, bool createFile ) : bool
fullFileName string
mode eFileMode
createFile bool
Результат bool

open() публичный Метод

public open ( string fullFileName, eFileMode mode, bool createFile, bool silens, eFileAccess access, bool withDialog, bool canOpenOther ) : bool
fullFileName string
mode eFileMode
createFile bool
silens bool
access eFileAccess
withDialog bool
canOpenOther bool
Результат bool

read() публичный Метод

public read ( string &text, bool &eof ) : bool
text string
eof bool
Результат bool

save() публичный Метод

public save ( string fullFileName, bool &exists, bool &readOnly, string description ) : bool
fullFileName string
exists bool
readOnly bool
description string
Результат bool

setFilter() публичный Метод

public setFilter ( string value ) : void
value string
Результат void

showOpenFileDlg() публичный Метод

public showOpenFileDlg ( string &userFile, string filter, string fileToSearch, string curDir, string title, bool saving ) : bool
userFile string
filter string
fileToSearch string
curDir string
title string
saving bool
Результат bool

userSearchFile() публичный Метод

public userSearchFile ( string &fullFileName, bool ifNotExistsIsOk, string description, bool saving, bool canOpenOther ) : bool
fullFileName string
ifNotExistsIsOk bool
description string
saving bool
canOpenOther bool
Результат bool

write() публичный Метод

public write ( string text ) : bool
text string
Результат bool