2. set the filepointer($fp) and specify the path and filename of the file to be created. In this part, fopen() requires 3 arguments but mostly you would only use 2 arguments: filename and directive. The directive sets the kind of processing to be done on the file. In this case "w", means write (only). If the file doesn't exists, it would attempt to create the file on the directory that you've specified, in this case it would be in the drive c-> "C:/" .