When they say that cgi can write to a server does that mean that it could only add further things to an existing file, or can it create a totally new file and edit it?
A CGI script is a program that runs on the server host and is invoked by the web server. Unless you configure your server to disallow it, a CGI script can easily create a new file on the server.