Garry's Mod Wiki

Garry's Mod Wiki

  boolean file.Append( string name, string content )

Description

Appends data to a file in the data/ folder.

Arguments

1 string name
The file's name.
2 string content
The content which should be appended to the file.

Returns

1 boolean
If the operation was successful.

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!

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...