LambLisp 01 Red Fox Alpha
Lisp For Real-Time Control
Loading...
Searching...
No Matches
LL_File Class Reference

Public Member Functions

bool isOpen ()
int read (void)
int write (byte b)
int seek (unsigned long target, int whence=SEEK_SET)
int tell ()
int size ()
int close ()
int read (byte *b, int n)
int read (char *s, int n)
int write (const byte *b, int n)
int write (const char *s, int n)
int peek ()

Public Attributes

File_Native _theFile
String _path
String _mode

Detailed Description

The file type is ultimately provided by the underlying operating system, not by LambLisp. This class elides the differences between file types on different platforms, providing a POSIX-like interface.

Note that there is no open operstion on files. A file is opened by the file system and then a file is returned. After a file is closed, the same file object cannot be opened again; instead a new file must be requested from the file system.