Disk & file access ------------------ diskload ( FromDisk ToMem amount -- ) Load specified abount of bytes from disk into memory. disksave ( FromMem ToDisk amount -- ) save specified abount of bytes from memory into disk. format ( -- ) Erase all files. fsDfilesize@ ( handle -- size ) Return size of opened file. fsDcurloc@ ( handle -- location ) Return current location in file. fsDupdated@ ( handle -- updated? ) Return true if file was updated, ie. write operations occured. fssave ( FromMem DestFileHandle amount -- ) Save data to file. fsload ( SrcFileHandle ToMem amount -- ) Load data from file. fseof ( handle -- bytesLeft ) Return amount of bytes left till end of file. Useful before read operation. fsls ( -- ) List all files and lists (directories,folders) in current path. fslsr ( -- ) Same as "fsls" but recursively scans also sub lists. fscl ( DynStrHand -- ) Change list (path) fscreate ( DynStrHand -- DescPnt ) Create new file or list. Can create multiple lists at once. ex: when creating: "\listGAMES\listSTRATEGY\listSIMWORLD\5th-runme" and only "\listGAMES\" already exist, then "listSTRATEGY" and "listSIMWORLD" lists will be created, and empty file "5th-runme" placed in there. fsDsave ( DynHand DynStrHand -- ) Create new file and save all data from dynamic memory block to it. fsDload ( DynStr DynHand -- ) Load whole file into dynamic memory block. fsDloadnew ( DynStr -- DynHand ) Load whole file into new dynamic memory block.