Since file.write clears out the file first, is there an easy way to append?
[b][url=wiki.garrysmod.com/?title=Filex.Append]Filex.Append [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
or just
[code]
function Append( path, text )
file.Write( path, file.Read( path ) .. text )
end[/code]
The wiki article is almost a cut/paste of the normal page, with incorrect information. I didn't know about filex, thanks for the help.
EDIT:
GBPS has fixed the wiki some.
Sorry, you need to Log In to post a reply to this thread.