mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
27 lines
435 B
Plaintext
27 lines
435 B
Plaintext
import fileio;
|
|
|
|
// test constants
|
|
{
|
|
// print MAX_FILENAME_SIZE;
|
|
// print MAX_FILES_OPEN;
|
|
// print END_OF_FILE;
|
|
|
|
assert END_OF_FILE < 0, "END_OF_FILE failed";
|
|
}
|
|
|
|
// test open
|
|
{
|
|
var file = open("does", "r");
|
|
|
|
file.read(string);
|
|
|
|
// TODO:
|
|
// file.write(12, ",", 12);
|
|
// file.size();
|
|
// file.isOpened();
|
|
// file.error();
|
|
// file.position();
|
|
// file.mode();
|
|
|
|
// close(file);
|
|
} |