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