Class File
Package: @altmp/altv-types
Syntax
Methods
|
Improve this Doc
View Source
exists(string)
Declaration
public static exists(filename: string): boolean
Parameters
Type |
Name |
Description |
string |
filename |
|
Returns
|
Improve this Doc
View Source
read(string, "utf-8" | "utf-16" | Utf8 | Utf16)
Declaration
public static read(filename: string, encoding?: "utf-8" | "utf-16" | Utf8 | Utf16): string
Parameters
Type |
Name |
Description |
string |
filename |
|
"utf-8" | "utf-16" | Utf8 | Utf16 |
encoding |
|
Returns
|
Improve this Doc
View Source
read(string, "binary" | Binary)
Declaration
public static read(filename: string, encoding: "binary" | Binary): ArrayBuffer
Parameters
Type |
Name |
Description |
string |
filename |
|
"binary" | Binary |
encoding |
|
Returns
Type |
Description |
ArrayBuffer |
|