Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 630 Bytes

file.writeAllLines.md

File metadata and controls

22 lines (16 loc) · 630 Bytes

file.writeAllLines

The writeAllLines function is used to write all lines to a text file.

Sample

file.writeAllLines("myFolder/myFile.txt","abcdefghijklmn","UTF-8");

API

Calling Returning
file . writeAllLines ( path, content ) String
file . writeAllLines ( path, content, encoding ) String
Parameters Type Description
path String The relative text file path to the storage folder.
content String The text content to be saved.
encoding String The charset name of the text file. The default value is UTF-8.