file.Append
From GMod Wiki
| Function | |
| Syntax |
file.Append( String filename, String contents ) Where is this used? |
| Description: | |
| Appends a file. | |
| Returns: | nil |
| Part of Library: | filex |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=File.Append]File.Append [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
| You can only read/write text data. Binary data is not mutable inside Garry's Mod using the File library. |
| Your filenames MUST end in .txt |
Examples
Additional Notes
- Relative to garrysmod/data
- You cannot write to a file outside the data directory.
- You cannot write anything but *.txt files.
- The filename is decapitalized when the file is made, so "CAPSdontWORK.txt" will turn into "capsdontwork.txt" when saved
- You cannot write files with special characters such as the following, " : _ , this means you cannot save a filename as a SteamID
- As of the latest file.Write update, any filename containing a period will silently fail. This mean that you cannot use file names such as the following: "My_V1.1_Object.txt"