fs.create_file

fs.create_file

fs.create_file

Function

Creates a file and writes optional initial content.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
contentAnyNo''Initial content.

Return value

TypeDescription
IntReturns the number of bytes written.

Example

Notes

  • Files with the same name will be overwritten.