Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
DFile Class
Data Members | Classes | Legend | Members | Methods | Send Feedback

File class, used in the C++ Support Classes and sample code to provide a portable way to read and write files.

Class Hierarchy
class DFile : public DStreamBase;
File

dfile.h

Remarks

DFile supports 64-bit file sizes and offsets. 

DFile supports Unicode filenames on operating systems that have Unicode support

Data Members
DFile Class
Data Member 
Description 
From stat 
Group
Methods
Method 
Description 
Returns true if the stream was opened with read access 
Returns true if the stream supports seek() 
Returns true if the stream was opened with write access 
Return the length of the stream 
read 
Read data from the stream 
seek 
Change the file position in the stream 
Set the length of the stream 
tell 
Return the current file position 
Write data to the stream 
DFile Class
Method 
Description 
Attach a file handle 
Returns true if the the file was opened with read access 
Returns true if the stream supports seek() 
Returns true if the the file was opened with write access 
Close the file 
Open a temporary file 
Close and reopen the file handle. 
Force file changes to be written to disk 
Close the file so it can be reopened without changing state 
Get the created date of the file 
Returns an operating system handle to the file 
Get the last system error that occurred when trying to access this file 
Return the length of the file 
Get the last-modified date of the file 
Get the name that was used to open the file 
good 
Returns true if the file was opened successfully 
True if the file is open 
open 
Open a file, using a UTF-8 filename 
Open a file, using a TCHAR or CString filename 
Open a file, using a Unicode filename 
read 
Read data from the file 
! Obsolete 
seek 
Change the file position 
Set the created and modified date of the file 
Set the length of the file (this can be used to truncate a file) 
Set the last-modified date of the file 
tell 
Get the file position 
Write data to the file 
! Obsolete 
Legend
 
Method 
 
abstract 
 
virtual 
 
Data Member 
 
protected 
Links
You are here: C++ Support Classes > dtSearch Namespace > Classes > DFile Class
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.