writeFileFromString

open fun writeFileFromString(filePath: String, content: String): Boolean

Write file from string.

Return

{@code true}: success{@code false}: fail

Parameters

filePath

The path of file.

content

The string of content.

open fun writeFileFromString(filePath: String, content: String, append: Boolean): Boolean

Write file from string.

Return

{@code true}: success{@code false}: fail

Parameters

filePath

The path of file.

content

The string of content.

append

True to append, false otherwise.

open fun writeFileFromString(file: File, content: String): Boolean

Write file from string.

Return

{@code true}: success{@code false}: fail

Parameters

file

The file.

content

The string of content.

open fun writeFileFromString(file: File, content: String, append: Boolean): Boolean

Write file from string.

Return

{@code true}: success{@code false}: fail

Parameters

file

The file.

content

The string of content.

append

True to append, false otherwise.