C# Class CSKernelFile.cFile

Show file Open project: javiercrowsoft/CSReports.net Class Usage Examples

Public Methods

Method 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

Method Description
fileExists ( string fullFileName ) : bool
isSeparator ( string character ) : bool

Method Details

binaryRead() public method

public binaryRead ( byte &buffer, bool &eof ) : bool
buffer byte
eof bool
return bool

binaryWrite() public method

public binaryWrite ( byte buffer ) : bool
buffer byte
return bool

cFile() public method

public cFile ( ) : System
return System

close() public method

public close ( ) : void
return void

copyFile() public static method

public static copyFile ( string fullFileNameSource, string fullFileNameDestination ) : bool
fullFileNameSource string
fullFileNameDestination string
return bool

getFileExt() public static method

public static getFileExt ( string fullFileName ) : string
fullFileName string
return string

getFileName() public static method

public static getFileName ( string fullFileName ) : string
fullFileName string
return string

getFileWithoutExt() public static method

public static getFileWithoutExt ( string fullFileName ) : string
fullFileName string
return string

getName() public method

public getName ( ) : string
return string

getPath() public method

public getPath ( ) : string
return string

getPath() public static method

public static getPath ( string fullFileName ) : string
fullFileName string
return string

getPathAndFileName() public static method

public static getPathAndFileName ( string fullFileName, string &path, string &fileName ) : void
fullFileName string
path string
fileName string
return void

init() public method

public init ( string function, string module, object commDialog ) : void
function string
module string
commDialog object
return void

open() public method

public open ( string fullFileName, eFileMode mode ) : bool
fullFileName string
mode eFileMode
return bool

open() public method

public open ( string fullFileName, eFileMode mode, bool createFile ) : bool
fullFileName string
mode eFileMode
createFile bool
return bool

open() public method

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
return bool

read() public method

public read ( string &text, bool &eof ) : bool
text string
eof bool
return bool

save() public method

public save ( string fullFileName, bool &exists, bool &readOnly, string description ) : bool
fullFileName string
exists bool
readOnly bool
description string
return bool

setFilter() public method

public setFilter ( string value ) : void
value string
return void

showOpenFileDlg() public method

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
return bool

userSearchFile() public method

public userSearchFile ( string &fullFileName, bool ifNotExistsIsOk, string description, bool saving, bool canOpenOther ) : bool
fullFileName string
ifNotExistsIsOk bool
description string
saving bool
canOpenOther bool
return bool

write() public method

public write ( string text ) : bool
text string
return bool