file.Append

From Garry's Mod
Jump to: navigation, search
 file.Append( )

Contents

Description

Appends a file relative to the data folder.

Arguments

string name

The file's name.

Arguments

string content

The content which should be appended to the file.

Examples

Example

Adds "Append!" to helloworld.txt, then prints it.

file.Append( "helloworld.txt", "Append!" )

print( file.Read( "helloworld.txt", "DATA" ) )

Output:

This is the content!Append!
Personal tools
Navigation