I just did my own weather file following the form of a web file downloaded, but when i uploaded to SAM, it does not read it properly. I mean, its taking another values for latitude, longitude and so on..
Please see the SAM Help topic "Weather File Formats," which is listed under "Weather Data" in the table of contents.
You can also find examples of correctly formatted weather files in the solar resource folder, which you can open from the Location and Resource page by clicking the "Open library folder" button.