C# Class CSKernelFile.cFile

Afficher le fichier Open project: javiercrowsoft/CSReports.net Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
fileExists ( string fullFileName ) : bool
isSeparator ( string character ) : bool

Method Details

binaryRead() public méthode

public binaryRead ( byte &buffer, bool &eof ) : bool
buffer byte
eof bool
Résultat bool

binaryWrite() public méthode

public binaryWrite ( byte buffer ) : bool
buffer byte
Résultat bool

cFile() public méthode

public cFile ( ) : System
Résultat System

close() public méthode

public close ( ) : void
Résultat void

copyFile() public static méthode

public static copyFile ( string fullFileNameSource, string fullFileNameDestination ) : bool
fullFileNameSource string
fullFileNameDestination string
Résultat bool

getFileExt() public static méthode

public static getFileExt ( string fullFileName ) : string
fullFileName string
Résultat string

getFileName() public static méthode

public static getFileName ( string fullFileName ) : string
fullFileName string
Résultat string

getFileWithoutExt() public static méthode

public static getFileWithoutExt ( string fullFileName ) : string
fullFileName string
Résultat string

getName() public méthode

public getName ( ) : string
Résultat string

getPath() public méthode

public getPath ( ) : string
Résultat string

getPath() public static méthode

public static getPath ( string fullFileName ) : string
fullFileName string
Résultat string

getPathAndFileName() public static méthode

public static getPathAndFileName ( string fullFileName, string &path, string &fileName ) : void
fullFileName string
path string
fileName string
Résultat void

init() public méthode

public init ( string function, string module, object commDialog ) : void
function string
module string
commDialog object
Résultat void

open() public méthode

public open ( string fullFileName, eFileMode mode ) : bool
fullFileName string
mode eFileMode
Résultat bool

open() public méthode

public open ( string fullFileName, eFileMode mode, bool createFile ) : bool
fullFileName string
mode eFileMode
createFile bool
Résultat bool

open() public méthode

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
Résultat bool

read() public méthode

public read ( string &text, bool &eof ) : bool
text string
eof bool
Résultat bool

save() public méthode

public save ( string fullFileName, bool &exists, bool &readOnly, string description ) : bool
fullFileName string
exists bool
readOnly bool
description string
Résultat bool

setFilter() public méthode

public setFilter ( string value ) : void
value string
Résultat void

showOpenFileDlg() public méthode

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
Résultat bool

userSearchFile() public méthode

public userSearchFile ( string &fullFileName, bool ifNotExistsIsOk, string description, bool saving, bool canOpenOther ) : bool
fullFileName string
ifNotExistsIsOk bool
description string
saving bool
canOpenOther bool
Résultat bool

write() public méthode

public write ( string text ) : bool
text string
Résultat bool