Method Stdio.write_file()
- Method
write_file
intwrite_file(stringfilename,stringstr,int|voidaccess)- Description
Write the string
stronto the filefilename. Any existing data in the file is overwritten.For a description of
access, see Stdio.File()->open().- Throws
Throws an error if
filenamecouldn't be opened for writing.- Returns
Returns the number of bytes written, i.e.
sizeof(str).- See also