Changes

Jump to navigation Jump to search
103 bytes added ,  20:25, 1 November 2016
→‎Functions: Start write()
Line 347: Line 347:  
}}
 
}}
   −
=== write(filehandle, str) ===
+
=== write() ===
Attempts to write the entirety of the specified string to the filehandle. Failures are thrown as runtime errors as per die(). Returns the number of bytes successfully written.
+
{{Nasal doc
 +
|syntax = io.write(file, string);
 +
|text = Writes a string to a given file and returns the number of bytes successfully written.
 +
|param1 = file
 +
|param1text = File object as returned by {{func link|open()}}.
 +
|param2 = string
 +
|param2text = String to write to the file.
 +
|example1 =
 +
}}
    
=== write_properties() ===
 
=== write_properties() ===

Navigation menu