---
product: Chilkat
product_version: 11.7.0
language: c
language_label: C
class: FileAccess
license: free
deprecated: false
reference_html: https://www.chilkatsoft.com/refdoc/c_CkFileAccessRef.html
---
# Chilkat FileAccess — C — v11.7.0

> Chilkat 11.7.0 · language=c · class=FileAccess
> Other versions: replace `11.7.0` in this URL. Other languages: `https://www.chilkatsoft.com/ai-docs/v/11.7.0/<lang>/classes/FileAccess.md`.
> Language-wide rules (install, unlock, error model, strings/bytes): `https://www.chilkatsoft.com/ai-docs/v/11.7.0/c/guide.md`.

## Purpose

**Read, write, compare, copy, split, inspect, and manage files and paths.**

`Chilkat.FileAccess` provides general-purpose file-system utilities for applications that need direct control over files, directories, paths, timestamps, and low-level file operations. It can read, write, append, seek, compare, copy, rename, delete, split, reassemble, and inspect files, and also includes helpers for directory operations, path parsing, symbolic links, temporary filenames, block-based reading, fragment scanning, text replacement, and open-file access.

**Read and write files**

Load or save text and binary files, append data, replace file contents, and work with explicit character encodings when needed.

**File management**

Copy, rename, delete, compare, split, reassemble, and inspect files using straightforward file-system utility methods.

**Directories and paths**

Create, remove, check, and work with directories, and use path helpers to extract filenames, extensions, directory names, and related path parts.

**Open-file operations**

Open files for lower-level reading or writing, seek within files, read blocks, and process large files without loading everything at once.

**Timestamps and metadata**

Get or set file times, inspect sizes and existence, and use metadata helpers when coordinating file processing workflows.

**Special file utilities**

Generate temporary filenames, work with symbolic links, scan for byte fragments, and perform text replacement in files.

**Common pattern:** Use `FileAccess` for local file-system tasks that are outside the scope of a specific protocol class. It is especially useful for preparing files before upload, saving downloaded data, comparing or splitting files, reading large files in blocks, manipulating paths, or performing small filesystem operations without using platform-specific APIs.

For an extended overview, see [FileAccess Class Overview](https://www.chilkatsoft.com/fileaccess_class_overview.asp).

## Object creation, unlocking and error handling

**Create/Dispose**

```c
HCkFileAccess instance = CkFileAccess_Create();
// ...
CkFileAccess_Dispose(instance);
```

`HCkFileAccess CkFileAccess_Create(void);`

Creates an instance of the HCkFileAccess object and returns a handle ("void \*" pointer). The handle is passed in the 1st argument for the functions listed on this page.

`void CkFileAccess_Dispose(HCkFileAccess handle);`

Objects created by calling CkFileAccess_Create must be freed by calling this method. A memory leak occurs if a handle is not disposed by calling this function. Also, any handle returned by a Chilkat "C" function must also be freed by the application by calling the appropriate Dispose method, such as CkFileAccess_Dispose.

Call `Global.UnlockBundle` once at the start of the program, before using this or any other Chilkat class. Any string unlocks a fully functional 30-day trial; a purchased unlock code is used in production. See `guide.md` for the exact code in C.

## Members common to every Chilkat class

Documented once per language in `common-members.md`; listed here so this page is self-contained.

| Property | Signature | Access | Meaning |
|---|---|---|---|
| `DebugLogFilePath` | `void CkFileAccess_getDebugLogFilePath(HCkFileAccess cHandle, HCkString retval); void CkFileAccess_putDebugLogFilePath(HCkFileAccess cHandle, const char *newVal); const char *CkFileAccess_debugLogFilePath(HCkFileAccess cHandle);` | read/write | If set to a file path, this property logs the LastErrorText of each Chilkat method or property call to the specified file. |
| `LastErrorHtml` | `void CkFileAccess_getLastErrorHtml(HCkFileAccess cHandle, HCkString retval); const char *CkFileAccess_lastErrorHtml(HCkFileAccess cHandle);` | read-only | Provides HTML-formatted information about the last called method or property. |
| `LastErrorText` | `void CkFileAccess_getLastErrorText(HCkFileAccess cHandle, HCkString retval); const char *CkFileAccess_lastErrorText(HCkFileAccess cHandle);` | read-only | Provides plain text information about the last called method or property. |
| `LastErrorXml` | `void CkFileAccess_getLastErrorXml(HCkFileAccess cHandle, HCkString retval); const char *CkFileAccess_lastErrorXml(HCkFileAccess cHandle);` | read-only | Provides XML-formatted information about the last called method or property. |
| `LastMethodSuccess` | `BOOL CkFileAccess_getLastMethodSuccess(HCkFileAccess cHandle); void CkFileAccess_putLastMethodSuccess(HCkFileAccess cHandle, BOOL newVal);` | read/write | Indicates the success or failure of the most recent method call: `TRUE` means success, `FALSE` means failure. |
| `Utf8` | `BOOL CkFileAccess_getUtf8(HCkFileAccess cHandle); void CkFileAccess_putUtf8(HCkFileAccess cHandle, BOOL newVal);` | read/write | When set to `TRUE`, all `const char *` arguments and return values are interpreted as UTF-8 strings. |
| `VerboseLogging` | `BOOL CkFileAccess_getVerboseLogging(HCkFileAccess cHandle); void CkFileAccess_putVerboseLogging(HCkFileAccess cHandle, BOOL newVal);` | read/write | If set to `TRUE`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may contain more verbose information. |
| `Version` | `void CkFileAccess_getVersion(HCkFileAccess cHandle, HCkString retval); const char *CkFileAccess_version(HCkFileAccess cHandle);` | read-only | Version of the component/library, such as "10.1.0" |

## Member index

| Member | Kind | Signature |
|---|---|---|
| `CurrentDir` | property, read-only | `void CkFileAccess_getCurrentDir(HCkFileAccess cHandle, HCkString retval); const char *CkFileAccess_currentDir(HCkFileAccess cHandle);` |
| `EndOfFile` | property, read-only | `BOOL CkFileAccess_getEndOfFile(HCkFileAccess cHandle);` |
| `FileOpenError` | property, read-only | `int CkFileAccess_getFileOpenError(HCkFileAccess cHandle);` |
| `FileOpenErrorMsg` | property, read-only | `void CkFileAccess_getFileOpenErrorMsg(HCkFileAccess cHandle, HCkString retval); const char *CkFileAccess_fileOpenErrorMsg(HCkFileAccess cHandle);` |
| `LockFileOnOpen` | property, read/write | `BOOL CkFileAccess_getLockFileOnOpen(HCkFileAccess cHandle); void CkFileAccess_putLockFileOnOpen(HCkFileAccess cHandle, BOOL newVal);` |
| `AppendAnsi` | method | `BOOL CkFileAccess_AppendAnsi(HCkFileAccess cHandle, const char *text);` |
| `AppendBd` | method | `BOOL CkFileAccess_AppendBd(HCkFileAccess cHandle, HCkBinData bd);` |
| `AppendSb` | method | `BOOL CkFileAccess_AppendSb(HCkFileAccess cHandle, HCkStringBuilder sb, const char *charset);` |
| `AppendText` | method | `BOOL CkFileAccess_AppendText(HCkFileAccess cHandle, const char *str, const char *charset);` |
| `AppendUnicodeBOM` | method | `BOOL CkFileAccess_AppendUnicodeBOM(HCkFileAccess cHandle);` |
| `AppendUtf8BOM` | method | `BOOL CkFileAccess_AppendUtf8BOM(HCkFileAccess cHandle);` |
| `DirAutoCreate` | method | `BOOL CkFileAccess_DirAutoCreate(HCkFileAccess cHandle, const char *filePath);` |
| `DirCreate` | method | `BOOL CkFileAccess_DirCreate(HCkFileAccess cHandle, const char *dirPath);` |
| `DirDelete` | method | `BOOL CkFileAccess_DirDelete(HCkFileAccess cHandle, const char *dirPath);` |
| `DirEnsureExists` | method | `BOOL CkFileAccess_DirEnsureExists(HCkFileAccess cHandle, const char *dirPath);` |
| `DirExists` | method | `BOOL CkFileAccess_DirExists(HCkFileAccess cHandle, const char *dirPath);` |
| `FileClose` | method | `void CkFileAccess_FileClose(HCkFileAccess cHandle);` |
| `FileContentsEqual` | method | `BOOL CkFileAccess_FileContentsEqual(HCkFileAccess cHandle, const char *filePath1, const char *filePath2);` |
| `FileCopy` | method | `BOOL CkFileAccess_FileCopy(HCkFileAccess cHandle, const char *existingFilepath, const char *newFilepath, BOOL failIfExists);` |
| `FileDelete` | method | `BOOL CkFileAccess_FileDelete(HCkFileAccess cHandle, const char *filePath);` |
| `FileExists` | method | `BOOL CkFileAccess_FileExists(HCkFileAccess cHandle, const char *filePath);` |
| `FileExists3` | method | `int CkFileAccess_FileExists3(HCkFileAccess cHandle, const char *path);` |
| `FileOpen` | method | `BOOL CkFileAccess_FileOpen(HCkFileAccess cHandle, const char *filePath, unsigned long accessMode, unsigned long shareMode, unsigned long createDisposition, unsigned long attributes);` |
| `FileReadBd` | method | `BOOL CkFileAccess_FileReadBd(HCkFileAccess cHandle, int maxNumBytes, HCkBinData binData);` |
| `FileRename` | method | `BOOL CkFileAccess_FileRename(HCkFileAccess cHandle, const char *existingFilepath, const char *newFilepath);` |
| `FileSeek` | method | `BOOL CkFileAccess_FileSeek(HCkFileAccess cHandle, int offset, int origin);` |
| `FileSize` | method | `int CkFileAccess_FileSize(HCkFileAccess cHandle, const char *filePath);` |
| `FileSize64` | method | `__int64 CkFileAccess_FileSize64(HCkFileAccess cHandle, const char *filePath);` |
| `FileSizeStr` | method | `BOOL CkFileAccess_FileSizeStr(HCkFileAccess cHandle, const char *filePath, HCkString outStr); const char *CkFileAccess_fileSizeStr(HCkFileAccess cHandle, const char *filePath);` |
| `FileType` | method | `int CkFileAccess_FileType(HCkFileAccess cHandle, const char *path);` |
| `FileWrite2` | method | `BOOL CkFileAccess_FileWrite2(HCkFileAccess cHandle, const unsigned char *pByteData, unsigned long szByteData);` |
| `FileWriteBd` | method | `BOOL CkFileAccess_FileWriteBd(HCkFileAccess cHandle, HCkBinData binData, int offset, int numBytes);` |
| `GenBlockId` | method | `BOOL CkFileAccess_GenBlockId(HCkFileAccess cHandle, int index, int length, const char *encoding, HCkString outStr); const char *CkFileAccess_genBlockId(HCkFileAccess cHandle, int index, int length, const char *encoding);` |
| `GetDirectoryName` | method | `BOOL CkFileAccess_GetDirectoryName(HCkFileAccess cHandle, const char *path, HCkString outStr); const char *CkFileAccess_getDirectoryName(HCkFileAccess cHandle, const char *path);` |
| `GetExtension` | method | `BOOL CkFileAccess_GetExtension(HCkFileAccess cHandle, const char *path, HCkString outStr); const char *CkFileAccess_getExtension(HCkFileAccess cHandle, const char *path);` |
| `GetFileName` | method | `BOOL CkFileAccess_GetFileName(HCkFileAccess cHandle, const char *path, HCkString outStr); const char *CkFileAccess_getFileName(HCkFileAccess cHandle, const char *path);` |
| `GetFileNameWithoutExtension` | method | `BOOL CkFileAccess_GetFileNameWithoutExtension(HCkFileAccess cHandle, const char *path, HCkString outStr); const char *CkFileAccess_getFileNameWithoutExtension(HCkFileAccess cHandle, const char *path);` |
| `GetFileTimeStr` | method | `BOOL CkFileAccess_GetFileTimeStr(HCkFileAccess cHandle, const char *path, int which, HCkString outStr); const char *CkFileAccess_getFileTimeStr(HCkFileAccess cHandle, const char *path, int which);` |
| `GetNumBlocks` | method | `int CkFileAccess_GetNumBlocks(HCkFileAccess cHandle, int blockSize);` |
| `GetTempFilename` | method | `BOOL CkFileAccess_GetTempFilename(HCkFileAccess cHandle, const char *dirPath, const char *prefix, HCkString outStr); const char *CkFileAccess_getTempFilename(HCkFileAccess cHandle, const char *dirPath, const char *prefix);` |
| `OpenForAppend` | method | `BOOL CkFileAccess_OpenForAppend(HCkFileAccess cHandle, const char *filePath);` |
| `OpenForRead` | method | `BOOL CkFileAccess_OpenForRead(HCkFileAccess cHandle, const char *filePath);` |
| `OpenForReadWrite` | method | `BOOL CkFileAccess_OpenForReadWrite(HCkFileAccess cHandle, const char *filePath);` |
| `OpenForWrite` | method | `BOOL CkFileAccess_OpenForWrite(HCkFileAccess cHandle, const char *filePath);` |
| `ReadBinaryToEncoded` | method | `BOOL CkFileAccess_ReadBinaryToEncoded(HCkFileAccess cHandle, const char *filePath, const char *encoding, HCkString outStr); const char *CkFileAccess_readBinaryToEncoded(HCkFileAccess cHandle, const char *filePath, const char *encoding);` |
| `ReadBlockBd` | method | `BOOL CkFileAccess_ReadBlockBd(HCkFileAccess cHandle, int blockIndex, int blockSize, HCkBinData bd);` |
| `ReadEntireTextFile` | method | `BOOL CkFileAccess_ReadEntireTextFile(HCkFileAccess cHandle, const char *filePath, const char *charset, HCkString outStrFileContents); const char *CkFileAccess_readEntireTextFile(HCkFileAccess cHandle, const char *filePath, const char *charset);` |
| `ReadNextFragment` | method | `int CkFileAccess_ReadNextFragment(HCkFileAccess cHandle, BOOL startAtBeginning, const char *beginMarker, const char *endMarker, const char *charset, HCkStringBuilder sb);` |
| `ReassembleFile` | method | `BOOL CkFileAccess_ReassembleFile(HCkFileAccess cHandle, const char *partsDirPath, const char *partPrefix, const char *partExtension, const char *reassembledFilename);` |
| `ReplaceStrings` | method | `int CkFileAccess_ReplaceStrings(HCkFileAccess cHandle, const char *filePath, const char *charset, const char *existingString, const char *replacementString);` |
| `SetCurrentDir` | method | `BOOL CkFileAccess_SetCurrentDir(HCkFileAccess cHandle, const char *dirPath);` |
| `SetFileTimes` | method | `BOOL CkFileAccess_SetFileTimes(HCkFileAccess cHandle, const char *filePath, HCkDateTime createTime, HCkDateTime lastAccessTime, HCkDateTime lastModTime);` |
| `SetLastModified` | method | `BOOL CkFileAccess_SetLastModified(HCkFileAccess cHandle, const char *filePath, HCkDateTime lastModified);` |
| `SplitFile` | method | `BOOL CkFileAccess_SplitFile(HCkFileAccess cHandle, const char *fileToSplit, const char *partPrefix, const char *partExtension, int partSize, const char *destDir);` |
| `SymlinkCreate` | method | `BOOL CkFileAccess_SymlinkCreate(HCkFileAccess cHandle, const char *targetPath, const char *linkPath);` |
| `SymlinkTarget` | method | `BOOL CkFileAccess_SymlinkTarget(HCkFileAccess cHandle, const char *linkPath, HCkString outStr); const char *CkFileAccess_symlinkTarget(HCkFileAccess cHandle, const char *linkPath);` |
| `TreeDelete` | method | `BOOL CkFileAccess_TreeDelete(HCkFileAccess cHandle, const char *path);` |
| `Truncate` | method | `BOOL CkFileAccess_Truncate(HCkFileAccess cHandle);` |
| `WriteEntireTextFile` | method | `BOOL CkFileAccess_WriteEntireTextFile(HCkFileAccess cHandle, const char *filePath, const char *textData, const char *charset, BOOL includedPreamble);` |

Deprecated members are listed at the end of this file with their replacements; do not use them in new code.

## Properties

### FileAccess.CurrentDir

`Chilkat 11.7.0 · c · FileAccess · CurrentDir · property · read-only`

```c
void CkFileAccess_getCurrentDir(HCkFileAccess cHandle, HCkString retval);
const char *CkFileAccess_currentDir(HCkFileAccess cHandle);
```

Returns the current working directory of the calling process. Relative file and directory paths are resolved against this process-wide working directory.

**Process-wide setting:** The working directory belongs to the process, not to an individual `FileAccess` object. Changing it can therefore affect relative-path behavior elsewhere in the application.

### FileAccess.EndOfFile

`Chilkat 11.7.0 · c · FileAccess · EndOfFile · property · read-only`

```c
BOOL CkFileAccess_getEndOfFile(HCkFileAccess cHandle);
```

Returns `TRUE` when the currently open file is positioned at end-of-file; otherwise returns `FALSE`.

**Open-file state:** This property applies to the file opened by `OpenForRead`, `OpenForWrite`, `OpenForReadWrite`, `OpenForAppend`, or `FileOpen`.

### FileAccess.FileOpenError

`Chilkat 11.7.0 · c · FileAccess · FileOpenError · property · read-only`

```c
int CkFileAccess_getFileOpenError(HCkFileAccess cHandle);
```

Provides the detailed open-error code from the most recent call to `FileOpen`, `OpenForRead`, `OpenForWrite`, `OpenForReadWrite`, or `OpenForAppend`.

| Code | Meaning |
| :--- | :--- |
| `0` | Success; no open error. |
| `1` | Access denied. |
| `2` | File not found. |
| `3` | General, non-specific open error. |
| `4` | File already exists. |
| `5` | The path refers to a directory and the requested access involves writing. |
| `6` | Too many symbolic links were encountered while resolving the path. |
| `7` | The process already has the maximum number of files open. |
| `8` | The pathname is too long. |
| `9` | The system-wide limit on open files has been reached. |
| `10` | The pathname refers to a device special file for which no corresponding device exists. |
| `11` | Insufficient kernel memory was available. |
| `12` | A file was to be created, but the containing device has no space available. |
| `13` | A pathname component expected to be a directory is not a directory. |
| `14` | The regular file is too large to be opened because of an operating-system limitation. |
| `15` | The path is on a read-only filesystem and write access was requested. |

**Use with FileOpenErrorMsg:** `FileOpenError` is useful for programmatic handling; `FileOpenErrorMsg` provides the corresponding human-readable message.

### FileAccess.FileOpenErrorMsg

`Chilkat 11.7.0 · c · FileAccess · FileOpenErrorMsg · property · read-only`

```c
void CkFileAccess_getFileOpenErrorMsg(HCkFileAccess cHandle, HCkString retval);
const char *CkFileAccess_fileOpenErrorMsg(HCkFileAccess cHandle);
```

Returns the human-readable message corresponding to `FileOpenError` for the most recent file-open attempt.

### FileAccess.LockFileOnOpen

`Chilkat 11.7.0 · c · FileAccess · LockFileOnOpen · property · read/write · since 9.5.0.80`

```c
BOOL CkFileAccess_getLockFileOnOpen(HCkFileAccess cHandle);
void CkFileAccess_putLockFileOnOpen(HCkFileAccess cHandle, BOOL newVal);
```

**Windows only.** If `TRUE`, `OpenForAppend`, `OpenForRead`, `OpenForReadWrite`, and `OpenForWrite` request exclusive access to the file. Other processes are prevented from opening the file until `FileClose` releases the handle. The default is `FALSE`.

**File sharing:** Windows file sharing is established when the file handle is opened. Set this property before calling an `OpenFor*` method.

## Methods

### FileAccess.AppendAnsi

`Chilkat 11.7.0 · c · FileAccess · AppendAnsi · method`

```c
BOOL CkFileAccess_AppendAnsi(HCkFileAccess cHandle, const char *text);
```

Appends `text` to the currently open file after converting the string to the legacy ANSI character encoding used by Chilkat for the platform.

**Character encoding:** Use `AppendText` or `AppendSb` when an explicit encoding such as `utf-8` is preferred.

Returns TRUE for success, FALSE for failure.

### FileAccess.AppendBd

`Chilkat 11.7.0 · c · FileAccess · AppendBd · method · since 9.5.0.76`

```c
BOOL CkFileAccess_AppendBd(HCkFileAccess cHandle, HCkBinData bd);
```

Appends all bytes contained in `bd` to the currently open file without text conversion.

Returns TRUE for success, FALSE for failure.

### FileAccess.AppendSb

`Chilkat 11.7.0 · c · FileAccess · AppendSb · method · since 9.5.0.76`

```c
BOOL CkFileAccess_AppendSb(HCkFileAccess cHandle, HCkStringBuilder sb, const char *charset);
```

Appends the text contained in `sb` to the currently open file using the character encoding specified by `charset`.

Returns TRUE for success, FALSE for failure.

### FileAccess.AppendText

`Chilkat 11.7.0 · c · FileAccess · AppendText · method`

```c
BOOL CkFileAccess_AppendText(HCkFileAccess cHandle, const char *str, const char *charset);
```

Appends `str` to the currently open file after encoding the text with the character set named by `charset`, such as `utf-8` or `iso-8859-1`.

Returns TRUE for success, FALSE for failure.

### FileAccess.AppendUnicodeBOM

`Chilkat 11.7.0 · c · FileAccess · AppendUnicodeBOM · method`

```c
BOOL CkFileAccess_AppendUnicodeBOM(HCkFileAccess cHandle);
```

Appends the UTF-16 little-endian byte-order mark to the currently open file. The two bytes written are `FF FE`.

**BOM placement:** A BOM normally belongs at the beginning of a text file. This method appends bytes at the current write position, so call it before writing text when creating a new UTF-16LE file.

Returns TRUE for success, FALSE for failure.

### FileAccess.AppendUtf8BOM

`Chilkat 11.7.0 · c · FileAccess · AppendUtf8BOM · method`

```c
BOOL CkFileAccess_AppendUtf8BOM(HCkFileAccess cHandle);
```

Appends the UTF-8 byte-order mark to the currently open file. The three bytes written are `EF BB BF`.

**UTF-8 BOM:** A UTF-8 BOM is optional. Some software uses it as an encoding signature, while other software expects BOM-less UTF-8.

Returns TRUE for success, FALSE for failure.

### FileAccess.DirAutoCreate

`Chilkat 11.7.0 · c · FileAccess · DirAutoCreate · method`

```c
BOOL CkFileAccess_DirAutoCreate(HCkFileAccess cHandle, const char *filePath);
```

Ensures that the directory portion of `filePath` exists. Any missing parent directories are created; the final path component is treated as a filename and is not created as a directory.

**Difference from DirEnsureExists:** Use `DirAutoCreate` when you have a file path. Use `DirEnsureExists` when the argument itself is a directory path.

Returns TRUE for success, FALSE for failure.

### FileAccess.DirCreate

`Chilkat 11.7.0 · c · FileAccess · DirCreate · method`

```c
BOOL CkFileAccess_DirCreate(HCkFileAccess cHandle, const char *dirPath);
```

Creates the directory specified by `dirPath`. Parent directories must already exist; use `DirEnsureExists` when missing parent directories should also be created.

Returns TRUE for success, FALSE for failure.

### FileAccess.DirDelete

`Chilkat 11.7.0 · c · FileAccess · DirDelete · method`

```c
BOOL CkFileAccess_DirDelete(HCkFileAccess cHandle, const char *dirPath);
```

Deletes the directory specified by `dirPath`. The directory must be empty; use `TreeDelete` to recursively delete a directory and its contents.

Returns TRUE for success, FALSE for failure.

### FileAccess.DirEnsureExists

`Chilkat 11.7.0 · c · FileAccess · DirEnsureExists · method`

```c
BOOL CkFileAccess_DirEnsureExists(HCkFileAccess cHandle, const char *dirPath);
```

Ensures that the complete directory path `dirPath` exists, creating missing directories along the path as needed.

Returns TRUE for success, FALSE for failure.

### FileAccess.DirExists

`Chilkat 11.7.0 · c · FileAccess · DirExists · method · since 10.0.0`

```c
BOOL CkFileAccess_DirExists(HCkFileAccess cHandle, const char *dirPath);
```

Returns `TRUE` if `dirPath` exists as a directory; otherwise returns `FALSE`.

### FileAccess.FileClose

`Chilkat 11.7.0 · c · FileAccess · FileClose · method`

```c
void CkFileAccess_FileClose(HCkFileAccess cHandle);
```

Closes the currently open file and releases its operating-system file handle. Any exclusive lock obtained through `LockFileOnOpen` is released at this time.

### FileAccess.FileContentsEqual

`Chilkat 11.7.0 · c · FileAccess · FileContentsEqual · method`

```c
BOOL CkFileAccess_FileContentsEqual(HCkFileAccess cHandle, const char *filePath1, const char *filePath2);
```

Compares `filePath1` and `filePath2` byte-for-byte and returns `TRUE` only when their contents are identical. File sizes are compared first; when sizes match, the files are compared incrementally rather than being loaded entirely into memory.

**Binary comparison:** The comparison is byte-oriented. Text encodings, line-ending conventions, and Unicode normalization are not interpreted or normalized.

### FileAccess.FileCopy

`Chilkat 11.7.0 · c · FileAccess · FileCopy · method`

```c
BOOL CkFileAccess_FileCopy(HCkFileAccess cHandle, const char *existingFilepath, const char *newFilepath, BOOL failIfExists);
```

Copies `existingFilepath` to `newFilepath`. If `failIfExists` is `TRUE` and the destination already exists, the copy fails instead of overwriting it.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileDelete

`Chilkat 11.7.0 · c · FileAccess · FileDelete · method`

```c
BOOL CkFileAccess_FileDelete(HCkFileAccess cHandle, const char *filePath);
```

Deletes the file specified by `filePath`.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileExists

`Chilkat 11.7.0 · c · FileAccess · FileExists · method`

```c
BOOL CkFileAccess_FileExists(HCkFileAccess cHandle, const char *filePath);
```

Returns `TRUE` if `filePath` exists; otherwise returns `FALSE`. Use `FileExists3` when the application must distinguish "does not exist" from "could not determine because of an error."

### FileAccess.FileExists3

`Chilkat 11.7.0 · c · FileAccess · FileExists3 · method · since 9.5.0.45`

```c
int CkFileAccess_FileExists3(HCkFileAccess cHandle, const char *path);
```

Checks whether `path` exists and returns a three-state result: `1` if it exists, `0` if it does not exist, and `-1` if Chilkat could not determine the result because of permissions or another filesystem error.

### FileAccess.FileOpen

`Chilkat 11.7.0 · c · FileAccess · FileOpen · method`

```c
BOOL CkFileAccess_FileOpen(HCkFileAccess cHandle, const char *filePath, unsigned long accessMode, unsigned long shareMode, unsigned long createDisposition, unsigned long attributes);
```

**Windows-specific low-level open.** Opens `filePath` using arguments modeled after the Win32 `CreateFile` API. For portable code, prefer `OpenForRead`, `OpenForWrite`, `OpenForReadWrite`, or `OpenForAppend`.

| Category | Common values |
| --- | --- |
| Access | `GENERIC_READ = 0x80000000`, `GENERIC_WRITE = 0x40000000` |
| Sharing | `FILE_SHARE_READ = 0x1`, `FILE_SHARE_WRITE = 0x2` |
| Disposition | `CREATE_NEW=1`, `CREATE_ALWAYS=2`, `OPEN_EXISTING=3`, `OPEN_ALWAYS=4`, `TRUNCATE_EXISTING=5` |

**Open failures:** When this method fails, inspect `FileOpenError` and `FileOpenErrorMsg` for the reason.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileReadBd

`Chilkat 11.7.0 · c · FileAccess · FileReadBd · method · since 9.5.0.64`

```c
BOOL CkFileAccess_FileReadBd(HCkFileAccess cHandle, int maxNumBytes, HCkBinData binData);
```

Reads up to `maxNumBytes` bytes from the current file position and appends the bytes to `binData`. The file position advances by the number of bytes read.

**Destination behavior:** Existing bytes already present in `binData` are preserved; newly read bytes are appended.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileRename

`Chilkat 11.7.0 · c · FileAccess · FileRename · method`

```c
BOOL CkFileAccess_FileRename(HCkFileAccess cHandle, const char *existingFilepath, const char *newFilepath);
```

Renames or moves `existingFilepath` to `newFilepath` using the local filesystem.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileSeek

`Chilkat 11.7.0 · c · FileAccess · FileSeek · method`

```c
BOOL CkFileAccess_FileSeek(HCkFileAccess cHandle, int offset, int origin);
```

Moves the current file position by `offset` bytes relative to `origin`.

|  |  |
| --- | --- |
| `0` | Offset from the beginning of the file. |
| `1` | Offset from the current file position. |
| `2` | Offset from end-of-file; negative offsets are commonly used. |

**Random access:** Seeking changes where the next read or write occurs; it does not itself read, write, or resize the file.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileSize

`Chilkat 11.7.0 · c · FileAccess · FileSize · method`

```c
int CkFileAccess_FileSize(HCkFileAccess cHandle, const char *filePath);
```

Returns the file size in bytes as a signed 32-bit integer.

**Failure returns 0:** If the size cannot be obtained (for example, the file does not exist or cannot be accessed), the return value is `0`, which is the same as for an empty file. To detect failure, use `FileSizeStr`, which fails instead of returning a size, or check first with `FileExists3`.

**Large files:** A signed 32-bit result cannot represent files larger than approximately 2 GB. Use `FileSize64` or `FileSizeStr` for large files.

### FileAccess.FileSize64

`Chilkat 11.7.0 · c · FileAccess · FileSize64 · method · since 9.5.0.88`

```c
__int64 CkFileAccess_FileSize64(HCkFileAccess cHandle, const char *filePath);
```

Returns the size of `filePath` in bytes as a signed 64-bit integer.

**Failure returns 0:** If the size cannot be obtained (for example, the file does not exist or cannot be accessed), the return value is `0`, which is the same as for an empty file. To detect failure, use `FileSizeStr`, which fails instead of returning a size, or check first with `FileExists3`.

### FileAccess.FileSizeStr

`Chilkat 11.7.0 · c · FileAccess · FileSizeStr · method · since 9.5.0.80`

```c
BOOL CkFileAccess_FileSizeStr(HCkFileAccess cHandle, const char *filePath, HCkString outStr);
const char *CkFileAccess_fileSizeStr(HCkFileAccess cHandle, const char *filePath);
```

Returns the size of `filePath` in bytes as a decimal string. This avoids the range limitation of a 32-bit integer return value.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileType

`Chilkat 11.7.0 · c · FileAccess · FileType · method · since 9.5.0.77`

```c
int CkFileAccess_FileType(HCkFileAccess cHandle, const char *path);
```

Examines `path` and classifies the filesystem entry.

|  |  |
| --- | --- |
| `-1` | Unable to determine because of permissions or another error. |
| `0` | Does not exist. |
| `1` | Regular file. |
| `2` | Directory. |
| `3` | Symbolic link. |
| `4` | Windows shortcut. |
| `99` | Another filesystem type. |

**Future values:** Additional file-type codes may be added in future versions as needed.

### FileAccess.FileWrite2

`Chilkat 11.7.0 · c · FileAccess · FileWrite2 · method · since 9.5.0.82`

```c
BOOL CkFileAccess_FileWrite2(HCkFileAccess cHandle, const unsigned char *pByteData, unsigned long szByteData);
```

Writes exactly `szByteData` bytes beginning at `pByteData` to the currently open file at the current file position.

**C++ buffer contract:** The caller must supply a valid readable buffer containing at least `szByteData` bytes.

Returns TRUE for success, FALSE for failure.

### FileAccess.FileWriteBd

`Chilkat 11.7.0 · c · FileAccess · FileWriteBd · method · since 9.5.0.64`

```c
BOOL CkFileAccess_FileWriteBd(HCkFileAccess cHandle, HCkBinData binData, int offset, int numBytes);
```

Writes bytes from `binData` to the currently open file. `offset` selects the starting byte within the `BinData`; `numBytes` selects how many bytes to write. Set both to `0` to write the entire `BinData`, or set `numBytes` to `0` to write all remaining bytes beginning at `offset`.

Returns TRUE for success, FALSE for failure.

### FileAccess.GenBlockId

`Chilkat 11.7.0 · c · FileAccess · GenBlockId · method · since 9.5.0.58`

```c
BOOL CkFileAccess_GenBlockId(HCkFileAccess cHandle, int index, int length, const char *encoding, HCkString outStr);
const char *CkFileAccess_genBlockId(HCkFileAccess cHandle, int index, int length, const char *encoding);
```

Generates a fixed-width decimal block identifier from `index`, padded to `length` characters, and then encodes those bytes using `encoding` (for example `base64`, `hex`, or `ascii`). This utility was originally added for block-oriented uploads such as Azure Blob block uploads.

**Ordering:** Fixed-width decimal identifiers preserve numeric ordering when identifiers are compared lexically, provided the chosen width is large enough for all indexes.

Returns TRUE for success, FALSE for failure.

### FileAccess.GetDirectoryName

`Chilkat 11.7.0 · c · FileAccess · GetDirectoryName · method · since 9.5.0.64`

```c
BOOL CkFileAccess_GetDirectoryName(HCkFileAccess cHandle, const char *path, HCkString outStr);
const char *CkFileAccess_getDirectoryName(HCkFileAccess cHandle, const char *path);
```

Returns the directory portion of `path` according to Chilkat path-parsing rules.

```
GetDirectoryName('C:\MyDir\MySubDir\myfile.ext')  ->  'C:\MyDir\MySubDir\'
GetDirectoryName('C:\MyDir\MySubDir')             ->  'C:\MyDir\'
GetDirectoryName('C:\')                             ->  'C:\'
```

Returns TRUE for success, FALSE for failure.

### FileAccess.GetExtension

`Chilkat 11.7.0 · c · FileAccess · GetExtension · method · since 9.5.0.64`

```c
BOOL CkFileAccess_GetExtension(HCkFileAccess cHandle, const char *path, HCkString outStr);
const char *CkFileAccess_getExtension(HCkFileAccess cHandle, const char *path);
```

Returns the filename extension portion of `path`, including the leading period. A period appearing only in a directory name is not treated as the file extension.

```
GetExtension('C:\mydir.old\myfile.ext')  ->  '.ext'
GetExtension('C:\mydir.old\')            ->  ''
```

Returns TRUE for success, FALSE for failure.

### FileAccess.GetFileName

`Chilkat 11.7.0 · c · FileAccess · GetFileName · method · since 9.5.0.64`

```c
BOOL CkFileAccess_GetFileName(HCkFileAccess cHandle, const char *path, HCkString outStr);
const char *CkFileAccess_getFileName(HCkFileAccess cHandle, const char *path);
```

Returns the final filename component of `path`, including its extension. If the path ends with a directory separator, the returned filename is empty.

```
GetFileName('C:\mydir\myfile.ext')  ->  'myfile.ext'
GetFileName('C:\mydir\')            ->  ''
```

Returns TRUE for success, FALSE for failure.

### FileAccess.GetFileNameWithoutExtension

`Chilkat 11.7.0 · c · FileAccess · GetFileNameWithoutExtension · method · since 9.5.0.64`

```c
BOOL CkFileAccess_GetFileNameWithoutExtension(HCkFileAccess cHandle, const char *path, HCkString outStr);
const char *CkFileAccess_getFileNameWithoutExtension(HCkFileAccess cHandle, const char *path);
```

Returns the final filename component of `path` with its extension removed. If `path` ends with a directory separator, the returned value is empty.

```
GetFileNameWithoutExtension('C:\mydir\myfile.ext')  ->  'myfile'
GetFileNameWithoutExtension('C:\mydir\')            ->  ''
```

Returns TRUE for success, FALSE for failure.

### FileAccess.GetFileTimeStr

`Chilkat 11.7.0 · c · FileAccess · GetFileTimeStr · method · since 11.0.0`

```c
BOOL CkFileAccess_GetFileTimeStr(HCkFileAccess cHandle, const char *path, int which, HCkString outStr);
const char *CkFileAccess_getFileTimeStr(HCkFileAccess cHandle, const char *path, int which);
```

Returns one file timestamp as an ISO 8601 UTC string in the form `YYYY-MM-DDTHH:MM:SSZ`. The `which` argument selects `0` = last-modified, `1` = last-access, or `2` = creation.

**Portability:** Creation/birth time is not available on every filesystem. The documented Chilkat behavior on Linux is to return the last-modified time when creation time is unavailable.

Returns TRUE for success, FALSE for failure.

### FileAccess.GetNumBlocks

`Chilkat 11.7.0 · c · FileAccess · GetNumBlocks · method · since 9.5.0.58`

```c
int CkFileAccess_GetNumBlocks(HCkFileAccess cHandle, int blockSize);
```

Returns how many `blockSize`-byte blocks are required to cover the currently open file. A partial final block counts as one block. Returns `0` for an empty file and `-1` if no file is open.

**Calculation:** Conceptually this is `ceil(fileSize / blockSize)` for a non-empty file.

### FileAccess.GetTempFilename

`Chilkat 11.7.0 · c · FileAccess · GetTempFilename · method`

```c
BOOL CkFileAccess_GetTempFilename(HCkFileAccess cHandle, const char *dirPath, const char *prefix, HCkString outStr);
const char *CkFileAccess_getTempFilename(HCkFileAccess cHandle, const char *dirPath, const char *prefix);
```

Generates a temporary pathname in `dirPath` using `prefix` and a random alphanumeric suffix, in the general form `prefix_xxxx.TMP`. The returned pathname is guaranteed not to already exist at the time it is generated.

Returns TRUE for success, FALSE for failure.

### FileAccess.OpenForAppend

`Chilkat 11.7.0 · c · FileAccess · OpenForAppend · method`

```c
BOOL CkFileAccess_OpenForAppend(HCkFileAccess cHandle, const char *filePath);
```

Opens `filePath` for writing at end-of-file. The file is created if it does not exist. Existing content is preserved, and the initial file position is at the end.

**Open failures:** If the open/create operation fails, inspect `FileOpenError` and `FileOpenErrorMsg`. On Windows, `LockFileOnOpen` can request exclusive access for this method.

Returns TRUE for success, FALSE for failure.

### FileAccess.OpenForRead

`Chilkat 11.7.0 · c · FileAccess · OpenForRead · method`

```c
BOOL CkFileAccess_OpenForRead(HCkFileAccess cHandle, const char *filePath);
```

Opens an existing `filePath` for reading. The file may contain text or binary data and must already exist.

**Open failures:** If the open/create operation fails, inspect `FileOpenError` and `FileOpenErrorMsg`. On Windows, `LockFileOnOpen` can request exclusive access for this method.

Returns TRUE for success, FALSE for failure.

### FileAccess.OpenForReadWrite

`Chilkat 11.7.0 · c · FileAccess · OpenForReadWrite · method`

```c
BOOL CkFileAccess_OpenForReadWrite(HCkFileAccess cHandle, const char *filePath);
```

Opens `filePath` for both reading and writing. The file is created if necessary. Existing content is preserved, and the initial file position is at the beginning.

**Open failures:** If the open/create operation fails, inspect `FileOpenError` and `FileOpenErrorMsg`. On Windows, `LockFileOnOpen` can request exclusive access for this method.

Returns TRUE for success, FALSE for failure.

### FileAccess.OpenForWrite

`Chilkat 11.7.0 · c · FileAccess · OpenForWrite · method`

```c
BOOL CkFileAccess_OpenForWrite(HCkFileAccess cHandle, const char *filePath);
```

Opens `filePath` for writing. The file is created if necessary; if it already exists, it is truncated to zero length when opened.

**Open failures:** If the open/create operation fails, inspect `FileOpenError` and `FileOpenErrorMsg`. On Windows, `LockFileOnOpen` can request exclusive access for this method.

Returns TRUE for success, FALSE for failure.

### FileAccess.ReadBinaryToEncoded

`Chilkat 11.7.0 · c · FileAccess · ReadBinaryToEncoded · method`

```c
BOOL CkFileAccess_ReadBinaryToEncoded(HCkFileAccess cHandle, const char *filePath, const char *encoding, HCkString outStr);
const char *CkFileAccess_readBinaryToEncoded(HCkFileAccess cHandle, const char *filePath, const char *encoding);
```

Reads the entire file at `filePath` as binary data and returns an encoded textual representation. Supported encoding names documented for this method include `base64`, `hex`, `qp`, and `url`.

**Encoding is not encryption:** These encodings transform bytes into text; they do not provide confidentiality.

Returns TRUE for success, FALSE for failure.

### FileAccess.ReadBlockBd

`Chilkat 11.7.0 · c · FileAccess · ReadBlockBd · method · since 9.5.0.79`

```c
BOOL CkFileAccess_ReadBlockBd(HCkFileAccess cHandle, int blockIndex, int blockSize, HCkBinData bd);
```

Reads the zero-based block `blockIndex` from the currently open file, using `blockSize` bytes per block, and appends the bytes to `bd`. A partial final block is appended at its actual length.

**Destination behavior:** Existing contents of `bd` are preserved; the block bytes are appended.

Returns TRUE for success, FALSE for failure.

### FileAccess.ReadEntireTextFile

`Chilkat 11.7.0 · c · FileAccess · ReadEntireTextFile · method`

```c
BOOL CkFileAccess_ReadEntireTextFile(HCkFileAccess cHandle, const char *filePath, const char *charset, HCkString outStrFileContents);
const char *CkFileAccess_readEntireTextFile(HCkFileAccess cHandle, const char *filePath, const char *charset);
```

Reads the entire file at `filePath`, decodes its bytes using `charset`, and returns the resulting text.

**Charset matters:** The charset controls byte-to-character conversion. Use the encoding that actually represents the file; incorrect charset selection can produce incorrect text or conversion failure.

Returns TRUE for success, FALSE for failure.

### FileAccess.ReadNextFragment

`Chilkat 11.7.0 · c · FileAccess · ReadNextFragment · method · since 9.5.0.80`

```c
int CkFileAccess_ReadNextFragment(HCkFileAccess cHandle, BOOL startAtBeginning, const char *beginMarker, const char *endMarker, const char *charset, HCkStringBuilder sb);
```

Scans the currently open file for the next text fragment beginning with `beginMarker` and ending with `endMarker`. The matched fragment, including both markers, is decoded using `charset` and appended to `sb`. If `startAtBeginning` is `TRUE`, scanning restarts at the beginning of the file; otherwise it continues after the previously matched fragment.

|  |  |
| --- | --- |
| `1` | A fragment was found and appended. |
| `0` | No matching fragment was found. |
| `-1` | An error occurred while reading. |

### FileAccess.ReassembleFile

`Chilkat 11.7.0 · c · FileAccess · ReassembleFile · method`

```c
BOOL CkFileAccess_ReassembleFile(HCkFileAccess cHandle, const char *partsDirPath, const char *partPrefix, const char *partExtension, const char *reassembledFilename);
```

Reassembles a file previously divided by `SplitFile`. Parts are read from `partsDirPath` using the supplied `partPrefix` and `partExtension`, and the combined bytes are written to `reassembledFilename`.

**Byte-for-byte reconstruction:** Reassembly is a binary operation; no text decoding or newline conversion is performed.

Returns TRUE for success, FALSE for failure.

### FileAccess.ReplaceStrings

`Chilkat 11.7.0 · c · FileAccess · ReplaceStrings · method`

```c
int CkFileAccess_ReplaceStrings(HCkFileAccess cHandle, const char *filePath, const char *charset, const char *existingString, const char *replacementString);
```

Reads the file at `filePath` as text using `charset`, replaces occurrences of `existingString` with `replacementString`, writes the updated text back to the file, and returns the number of replacements made.

**Text operation:** This is character-based replacement after decoding the file. It is not suitable for arbitrary binary files.

### FileAccess.SetCurrentDir

`Chilkat 11.7.0 · c · FileAccess · SetCurrentDir · method`

```c
BOOL CkFileAccess_SetCurrentDir(HCkFileAccess cHandle, const char *dirPath);
```

Changes the current working directory of the calling process to `dirPath`.

**Process-wide effect:** The current directory is normally process-wide, so changing it can affect relative paths used by other code or threads. Absolute paths avoid that dependency.

Returns TRUE for success, FALSE for failure.

### FileAccess.SetFileTimes

`Chilkat 11.7.0 · c · FileAccess · SetFileTimes · method`

```c
BOOL CkFileAccess_SetFileTimes(HCkFileAccess cHandle, const char *filePath, HCkDateTime createTime, HCkDateTime lastAccessTime, HCkDateTime lastModTime);
```

Sets the creation, last-access, and last-modified timestamps for `filePath` from the supplied `CkDateTime` objects. On filesystems that do not support a creation/birth time, `createTime` is ignored.

**Filesystem differences:** Timestamp availability and precision are filesystem- and operating-system-dependent.

Returns TRUE for success, FALSE for failure.

### FileAccess.SetLastModified

`Chilkat 11.7.0 · c · FileAccess · SetLastModified · method`

```c
BOOL CkFileAccess_SetLastModified(HCkFileAccess cHandle, const char *filePath, HCkDateTime lastModified);
```

Sets the last-modified timestamp of `filePath` from `lastModified`. The precision actually stored depends on the underlying filesystem.

Returns TRUE for success, FALSE for failure.

### FileAccess.SplitFile

`Chilkat 11.7.0 · c · FileAccess · SplitFile · method`

```c
BOOL CkFileAccess_SplitFile(HCkFileAccess cHandle, const char *fileToSplit, const char *partPrefix, const char *partExtension, int partSize, const char *destDir);
```

Splits `fileToSplit` into sequential binary parts of up to `partSize` bytes and writes them to `destDir` using `partPrefix` and `partExtension`. Use `ReassembleFile` to reconstruct the original file.

Returns TRUE for success, FALSE for failure.

### FileAccess.SymlinkCreate

`Chilkat 11.7.0 · c · FileAccess · SymlinkCreate · method · since 9.5.0.77`

```c
BOOL CkFileAccess_SymlinkCreate(HCkFileAccess cHandle, const char *targetPath, const char *linkPath);
```

Creates a symbolic link at `linkPath` that refers to `targetPath`.

**Windows note:** A Windows symbolic link is not the same as a Windows shortcut. Windows may require elevated privileges or an operating-system configuration such as Developer Mode that permits unprivileged symbolic-link creation, depending on system policy and how the application is launched.

Returns TRUE for success, FALSE for failure.

### FileAccess.SymlinkTarget

`Chilkat 11.7.0 · c · FileAccess · SymlinkTarget · method · since 9.5.0.77`

```c
BOOL CkFileAccess_SymlinkTarget(HCkFileAccess cHandle, const char *linkPath, HCkString outStr);
const char *CkFileAccess_symlinkTarget(HCkFileAccess cHandle, const char *linkPath);
```

Returns the resolved target pathname for the symbolic link at `linkPath`. On Windows, this method also understands Windows shortcut (`.lnk`) files and returns the absolute target path.

**Link vs. target:** A symbolic link is a filesystem object that refers to another path. A Windows shortcut is a separate shell-file format; Chilkat supports both here even though they are different mechanisms.

Returns TRUE for success, FALSE for failure.

### FileAccess.TreeDelete

`Chilkat 11.7.0 · c · FileAccess · TreeDelete · method`

```c
BOOL CkFileAccess_TreeDelete(HCkFileAccess cHandle, const char *path);
```

Recursively deletes the directory tree rooted at `path`, including contained files and subdirectories.

**Destructive operation:** This operation is recursive and destructive. Ensure `path` identifies the intended tree before calling it.

Returns TRUE for success, FALSE for failure.

### FileAccess.Truncate

`Chilkat 11.7.0 · c · FileAccess · Truncate · method · since 9.5.0.80`

```c
BOOL CkFileAccess_Truncate(HCkFileAccess cHandle);
```

Truncates the currently open file at the current file position. Bytes at and after that position are removed, making the current position the new end-of-file.

**Use with FileSeek:** A common pattern is to seek to the desired new length and then call `Truncate`.

Returns TRUE for success, FALSE for failure.

### FileAccess.WriteEntireTextFile

`Chilkat 11.7.0 · c · FileAccess · WriteEntireTextFile · method`

```c
BOOL CkFileAccess_WriteEntireTextFile(HCkFileAccess cHandle, const char *filePath, const char *textData, const char *charset, BOOL includedPreamble);
```

Creates or opens `filePath`, encodes `textData` using `charset`, writes the resulting bytes, and closes the file. Existing file content is replaced. If `includePreamble` is `TRUE`, an appropriate preamble/BOM is included for encodings such as UTF-8 or UTF-16.

**BOM terminology:** A BOM is part of the byte representation of the text file; it is not part of the application string itself.

Returns TRUE for success, FALSE for failure.

## Deprecated members — do not use in new code

| Member | Kind | Deprecated in | Use instead |
|---|---|---|---|
| `FileRead` | method | before 11.6.1 | — |
| `FileWrite` | method | before 11.6.1 | — |
| `GetFileTime` | method | before 11.6.1 | `GetFileTimeStr` |
| `GetLastModified` | method | before 11.6.1 | `GetFileTimeStr` |
| `ReadBlock` | method | before 11.6.1 | — |
| `ReadEntireFile` | method | before 11.6.1 | — |
| `WriteEntireFile` | method | before 11.6.1 | — |

## Related classes

[`BinData`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/c/classes/BinData.md), [`CkDateTime`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/c/classes/CkDateTime.md), [`StringBuilder`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/c/classes/StringBuilder.md)

