Garry's Mod Wiki

file.Append

file.Append( string name, string content )

Description

Appends a file relative to the data folder.

Arguments

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

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!

Page Links


Special Pages


Wikis

?

Render Time: 28ms

Session 0
DB GetPage 3
Generate Html 6
SaveChanges 9
Render Body 0
Render Sidebar 7