This depends on what program you are using.
For those that are using Notepad++, it's just a case of right clicking on your web directory [i.e. the www folder] (in the folder navigator on the right side) and choosing Create file.
www