File
File system operations for reading and writing files.
xxml
#import Language::System;Constructors
| Method | Parameters | Returns | Description |
|---|---|---|---|
| Constructor | path: String^ | File^ | Create file handle |
Properties
| Method | Parameters | Returns | Description |
|---|---|---|---|
| exists | — | Bool^ | Check if file exists |
| isDirectory | — | Bool^ | Check if directory |
| size | — | Integer^ | Get file size in bytes |
Operations
| Method | Parameters | Returns | Description |
|---|---|---|---|
| read | — | String^ | Read entire file |
| write | content: String& | Bool^ | Write/overwrite file |
| append | content: String& | Bool^ | Append to file |
| delete | — | Bool^ | Delete file |
| copy | destination: String& | Bool^ | Copy file |
| move | destination: String& | Bool^ | Move/rename file |
| readLines | — | List<String>^ | Read as lines |
Directory
| Method | Parameters | Returns | Description |
|---|---|---|---|
| listDirectory | — | List<String>^ | List directory contents (static) |
| createDirectory | — | Bool^ | Create directory (static) |