ES2.AppendRaw

public static void AppendRaw(byte[] bytes, string path, ES2Settings settings=null)

Parameters

bytes The raw bytes which we want to append to our file.

path

The path of the file we want to create to store our data, or append to if it already exists. For more information, see Paths."

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Description

Appends these bytes to the end of the specified file, or creates the file with these bytes if it doesn’t exist.

Note: Path should point to a file.

C#

JS


public static void AppendRaw(string data, string path, ES2Settings settings=null)

Parameters

data The raw string representing to be appended to our file. It will be stored in the UTF8 encoding.

path

The path of the file we want to create to store our data, or append to if it already exists. For more information, see Paths."

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Description

Appends this string to the end of the specified file as a UTF8 string, or creates the file with this string if it doesn’t exist.

Note: Path should point to a file.

C#

JS


public static void AppendRaw(TextAsset data, string path, ES2Settings settings=null)

Parameters

data The TextAsset we want to append to the file.

path

The path of the file we want to create to append our data to, which should have the extension .bytes. For more information, see Paths.

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Description

Saves a TextAsset as a file which will contain the same bytes as the TextAsset, or appends to the file if it already exists.

Note: The TextAsset must have the extension ‘.bytes’.
Note: Path should point to a file.

C#

JS