Difference between revisions of "Manual:DIL Manual/delstr()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(XML import)
 
Line 1: Line 1:
 +
<span id="bfdelstr"></span>
 +
 +
'''Function:'''  <i><!--CODE-->integer delstr( filename : string ) ;</i><!--ENDCODE-->
 +
 +
<!--TERM-->  '''filename'''
 +
<!--DEFINITION-->        The name of the String file to be deleted
 +
<!--TERM-->  '''Return'''
 +
<!--DEFINITION-->        Returns an integer TRUE if deleted FALSE if not
 +
 +
The delstr is used to delete files that are used with the 'loadstr' and
 +
'savestr'      functions.  The delstr function will only delete files that
 +
each individual Zone has access to which is set up in the Zonelist file in the
 +
VME etc directory.
 +
'''Example:'''
 +
<i><!--CODE-->
 +
---~---~---~---~---~---~---~---~---
 +
 +
dilbegin news|del ("arg : string /*filename to be deleted);
 +
var
 +
        ret:integer;/*to hold the return value if deleted or not*/
 +
code
 +
dilend
 +
  
 +
---~---~---~---~---~---~---~---~---
  
 +
</i><!--ENDCODE-->
 +
'''See Also''' <i><!--CODE-->
 +
[[#bfloadstr|Load String file]] and
 +
[[#bfsavestr|Save String file]]</i><!--ENDCODE-->
 
<span id="bfdelstr"></span>
 
<span id="bfdelstr"></span>
  
Line 22: Line 50:
 
         ret:integer;/*to hold the return value if deleted or not*/
 
         ret:integer;/*to hold the return value if deleted or not*/
 
  code
 
  code
{
+
dilend
ret:= delstr("news.txt");
 
if (!ret)
 
        {
 
        log ("File not deleted.");
 
        quit;
 
        }
 
 
 
sendtext ("News file deleted[&amp;]n",self);
 
quit;/*dil delete routine done
 
}
 
dilend
 
  
  

Latest revision as of 22:29, 4 December 2025

Function:  integer delstr( filename : string ) ;
  filename
         The name of the String file to be deleted
  Return
         Returns an integer TRUE if deleted FALSE if not
The delstr is used to delete files that are used with the 'loadstr' and
'savestr'       functions.  The delstr function will only delete files that
each individual Zone has access to which is set up in the Zonelist file in the
VME etc directory.
Example:

---~---~---~---~---~---~---~---~---
dilbegin news|del ("arg : string /*filename to be deleted);
var
        ret:integer;/*to hold the return value if deleted or not*/
code

dilend


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

See Also 
Load String file and
Save String file

Function:  integer delstr( filename : string ) ;
  filename
         The name of the String file to be deleted
  Return
         Returns an integer TRUE if deleted FALSE if not
The delstr is used to delete files that are used with the 'loadstr' and
'savestr'       functions.  The delstr function will only delete files that
each individual Zone has access to which is set up in the Zonelist file in the
VME etc directory.
Example:

---~---~---~---~---~---~---~---~---
dilbegin news|del ("arg : string /*filename to be deleted);
var
        ret:integer;/*to hold the return value if deleted or not*/
code

dilend


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

See Also 
Load String file and
Save String file