Manual:DIL Manual/filesize()

From DikuMUD Wiki
Jump to navigation Jump to search

Function:  integer filesize ( filename :string);
  file
         The file name you want to check
  return
         a file size in bites 0 if no file



This function does exactly what it says it does it checks a files size.
Example DIL:

---~---~---~---~---~---~---~---~---
dilbegin notebook ();
code

dilend

---~---~---~---~---~---~---~---~---

The previous DIL example shows how you could use the 'filesize' instruction to
check the size of a player stored notebook.


---~---~---~---~---~---~---~---~---

Function:  integer filesize ( filename :string);
  file
         The file name you want to check
  return
         a file size in bites 0 if no file



This function does exactly what it says it does it checks a files size.
Example DIL:

---~---~---~---~---~---~---~---~---
dilbegin notebook ();
code

dilend

---~---~---~---~---~---~---~---~---

The previous DIL example shows how you could use the 'filesize' instruction to
check the size of a player stored notebook.


---~---~---~---~---~---~---~---~---