file.Exists and file.Write

Ive been trying to get my script (a simple MOTD one) to check if the file (limits.txt) exists … if it does, check it ageist the servers version (overwrite if new) using the file.Exists and file.Write

**[Resource.AddSingleFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Resource.AddSingleFile)** will send the server-side file to the clients, overwriting any old version.

If you need to compare them for whatever reason, you’d have to send the contents of the file over datastream and compare it, and then send the results back. Which is sloooow.

**[File.Size

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=File.Size)**