Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 809 Bytes

file.writeAllLines.md

File metadata and controls

24 lines (18 loc) · 809 Bytes

file.writeAllLines

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

Sample

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

API

CallingReturning
file . writeAllLines ( path, content )String
file . writeAllLines ( path, content, encoding )String
ParametersTypeDescription
pathStringThe relative text file path to the storage folder.
contentStringThe text value will be saved.
encodingStringThe charset name of the text file. The default value is UTF-8;