Difference between revisions of "Manual:DIL Manual/filesize()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| + | <span id="bffilesize"></span> | ||
| + | '''Function:''' <i><!--CODE-->integer filesize ( filename :string);</i><!--ENDCODE--> | ||
| + | <!--TERM--> '''file''' | ||
| + | <!--DEFINITION--> The file name you want to check | ||
| + | <!--TERM--> '''return''' | ||
| + | <!--DEFINITION--> 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:''' | ||
| + | <i><!--CODE--> | ||
| + | ---~---~---~---~---~---~---~---~--- | ||
| + | |||
| + | dilbegin notebook (); | ||
| + | code | ||
| + | dilend | ||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
| + | |||
| + | </i><!--ENDCODE--> | ||
| + | The previous DIL example shows how you could use the 'filesize' instruction to | ||
| + | check the size of a player stored notebook. | ||
| + | |||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
<span id="bffilesize"></span> | <span id="bffilesize"></span> | ||
| Line 21: | Line 49: | ||
dilbegin notebook (); | dilbegin notebook (); | ||
code | code | ||
| − | + | dilend | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
---~---~---~---~---~---~---~---~--- | ---~---~---~---~---~---~---~---~--- | ||
Latest revision as of 22:38, 4 December 2025
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.
---~---~---~---~---~---~---~---~---