A simple library that abstracts common file operations.
- Adobe AIR (requires
-D air
) - CPP
- C#
- Java
- Macro
- Neko
- NodeJS
- OpenFL (automatic remap of package
flash
toopenfl
when usingByteArray
) - PhantomJS (requires
-D phantomjs
and-lib phantomjs
) - PHP
- Python
- HashLink (unable to get runtime working)
- Lua (partial - some failed tests)
Add these for best usage.
import filesystem.File;
// Adds candy I/O (read/write/append) extension methods onto File
using filesystem.FileTools;
// Create a file instance
var file = new File('some.txt');
// Write simple string contents into the file
file.writeString('My awesome file contents!');
// Read string contents into local variable
var contents = file.readString();
trace(contents);
View the latest: https://www.kidsindustries.com/open-source/ki-filesystem/latest/docs/index.html
Or replace /latest/
-> /1.1.3/
in the url to view a specific version.