feat(v1.4.1): add native proposal module, Lover Accept Checker AI, and modules documentation catalog
This commit is contained in:
1 parent
4895c201c1
commit
b7ae6c9725
20 files changed
+600
-34
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# 📁 AiraLang `file` Module
|
||||
> **Local File System I/O Operations**
|
||||
|
||||
## Import
|
||||
```aira
|
||||
import "file";
|
||||
```
|
||||
|
||||
## Methods
|
||||
- `file.read(path)`: Read entire text file.
|
||||
- `file.write(path, content)`: Overwrite file with content.
|
||||
- `file.append(path, content)`: Append content to file.
|
||||
- `file.exists(path)`: Check if file exists.
|
||||
- `file.delete(path)`: Remove file.
|
||||
- `file.size(path)`: Get file size in bytes.
|
||||
|
||||
## Example
|
||||
```aira
|
||||
import "file";
|
||||
|
||||
file.write("test.txt", "AiraLang v1.4.1");
|
||||
let text = file.read("test.txt");
|
||||
say text;
|
||||
```
|
||||
Reference in new issue
Block a user