Saves a string to a file with specified text encoding. Takes a string, file path, and encoding value (0=ANSI, 1=UTF-8 with BOM, 2=UTF-16 LE with BOM). Returns 1 on success, 0 on failure.
str
String
filepath
String
encoding
Int
; No example implemented yet